Uses of Class
de.marcely.bedwars.tools.location.XYZ
Packages that use XYZ
Package
Description
The root package of the MBedwars API
Contains classes that are related to the
Arena
.Classes related to the in game
Spawners
.Classes relevant to managing custom blocks and holograms placed throughout worlds.
Various helper classes that can be used to make life a lot easier.
Classes used for representing locations within a world.
-
Uses of XYZ in de.marcely.bedwars.api
Methods in de.marcely.bedwars.api with parameters of type XYZModifier and TypeMethodDescriptionvoid
GameAPI.drawBorder
(XYZ min, XYZ max, Player player) Draw a cube border once. -
Uses of XYZ in de.marcely.bedwars.api.arena
Methods in de.marcely.bedwars.api.arena that return XYZModifier 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.Methods in de.marcely.bedwars.api.arena with parameters of type XYZModifier 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
Methods in de.marcely.bedwars.api.game.spawner that return XYZModifier and TypeMethodDescriptionSpawner.getLocation()
Returns where the spawner has been added. -
Uses of XYZ in de.marcely.bedwars.api.world
Methods in de.marcely.bedwars.api.world with parameters of type XYZModifier 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
Methods in de.marcely.bedwars.tools with parameters of type XYZModifier 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
Subclasses of XYZ in de.marcely.bedwars.tools.locationModifier 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 directionMethods in de.marcely.bedwars.tools.location that return XYZModifier 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 0Methods in de.marcely.bedwars.tools.location with parameters of type XYZModifier 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 objectConstructors in de.marcely.bedwars.tools.location with parameters of type XYZModifierConstructorDescriptionImmutableXYZ
(XYZ xyz) ImmutableXYZD
(XYZ xyz) ImmutableXYZYP
(XYZ xyz)