Uses of Class
de.marcely.bedwars.tools.location.XYZ
Package
Description
-
Uses of XYZ in de.marcely.bedwars.api
Modifier and TypeMethodDescriptionvoid
GameAPI.drawBorder
(XYZ min, XYZ max, Player player) Draw a cube border once. -
Uses of XYZ in de.marcely.bedwars.api.arena
Modifier and TypeMethodDescription@Nullable XYZ
Arena.getMaxRegionCorner()
An arena of the typeRegenerationType.REGION
has two corners.@Nullable XYZ
Arena.getMinRegionCorner()
An arena of the typeRegenerationType.REGION
has two corners.Modifier and TypeMethodDescriptionArena.addSpawner
(XYZ location, DropType type) Adds a spawner to the arenaSpawner[]
Arena.getSpawnersAtLocation
(XYZ location) Returns all spawners that are located at that block/location@Nullable Team
Arena.getTeamByBaseLocation
(XYZ xyz) Tries to fetch the team of a location that's inside a base.boolean
Checks whether the given location is inside the arena.ArenaBuilder.setLocation1
(XYZ loc) Can be used for:
-RegenerationType.REGION
ArenaBuilder.setLocation2
(XYZ loc) Can be used for:
-RegenerationType.REGION
void
Arena.setRegionCorners
(XYZ pos1, XYZ pos2) An arena of the typeRegenerationType.REGION
has two corners. -
Uses of XYZ in de.marcely.bedwars.api.game.spawner
Modifier and TypeMethodDescriptionSpawner.getLocation()
Returns where the spawner has been added. -
Uses of XYZ in de.marcely.bedwars.api.world
Modifier and TypeMethodDescriptiondefault @Nullable SpecialBlock
Tries to create a special block at the given coordinates.default @Nullable SpecialBlock
Tries to fetch and return a special block given by its coordinates -
Uses of XYZ in de.marcely.bedwars.tools
Modifier and TypeMethodDescriptiondefault void
Helper.getBlockAsync
(World world, XYZ xyz, Consumer<Block> callback) Allows you to retrieve and modify a block asynchronously on 1.14+ -
Uses of XYZ in de.marcely.bedwars.tools.location
Modifier and TypeClassDescriptionclass
ExtendsXYZ
and forbids any modifications done to itclass
ExtendsXYZD
and forbids any modifications done to itclass
ExtendsXYZYP
and forbids any modifications done to itclass
Represents a 3-dimensional position and a compass directionclass
Represents a 3-dimensional position with a yaw and pitch directionModifier and TypeMethodDescriptionImmutableXYZ.add
(double x, double y, double z) XYZ.add
(double x, double y, double z) Adds the x-coordinatesXYZ.clone()
static XYZ
XYZ.deserialize
(Map<String, Object> data) Required method for deserializationImmutableXYZ.multiply
(double amount) ImmutableXYZ.multiply
(double x, double y, double z) XYZ.multiply
(double amount) XYZ.multiply
(double x, double y, double z) ImmutableXYZ.set
(double x, double y, double z) XYZ.set
(double x, double y, double z) Sets the new coordinatesCopies and sets the xyz coordinates from the given objectCopies and sets the xyz coordinates from the given objectCopies and sets the xyz coordinates from the given objectImmutableXYZ.setX
(double x) XYZ.setX
(double x) Sets the x-coordinateImmutableXYZ.setY
(double y) XYZ.setY
(double y) Sets the y-coordinateImmutableXYZ.setZ
(double z) XYZ.setZ
(double z) Sets the z-coordinateImmutableXYZ.subtract
(double x, double y, double z) XYZ.subtract
(double x, double y, double z) ImmutableXYZ.zero()
XYZ.zero()
Sets all coordinates to 0Modifier and TypeMethodDescriptiondouble
double
XYZ.distanceSquared
(XYZ o) boolean
IntXYZ.equalsBlockCoords
(XYZ xyz) Check whether the block coords match.boolean
XYZ.equalsBlockCoords
(XYZ xyz) Check whether the block coords (i.a.Copies and sets the xyz coordinates from the given objectCopies and sets the xyz coordinates from the given objectModifierConstructorDescriptionImmutableXYZ
(XYZ xyz) ImmutableXYZD
(XYZ xyz) ImmutableXYZYP
(XYZ xyz)