Class DeathChestPlacer
- java.lang.Object
-
- com.therandomlabs.vanilladeathchest.deathchest.DeathChestPlacer
-
public final class DeathChestPlacer extends Object
Handles death chest placement.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanplaceAndFillContainer(DeathChest deathChest)Places and fills the specified death chest.static voidplaceQueued(net.minecraft.server.world.ServerWorld world)Places all queued death chests that are ready to be placed in the specified world.static voidspawnDefenseEntities(DeathChest deathChest)Spawns the defense entities for the specified death chest.
-
-
-
Method Detail
-
placeQueued
public static void placeQueued(net.minecraft.server.world.ServerWorld world)
Places all queued death chests that are ready to be placed in the specified world. This is called at the end of every world tick.- Parameters:
world- aServerWorld.
-
placeAndFillContainer
public static boolean placeAndFillContainer(DeathChest deathChest)
Places and fills the specified death chest.- Parameters:
deathChest- a death chest.- Returns:
trueif the placement is successful, or otherwisefalse.
-
spawnDefenseEntities
public static void spawnDefenseEntities(DeathChest deathChest)
Spawns the defense entities for the specified death chest.- Parameters:
deathChest- a death chest.
-
-