Class DeathChestPlacer


  • public final class DeathChestPlacer
    extends Object
    Handles death chest placement.
    • 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 - a ServerWorld.
      • placeAndFillContainer

        public static boolean placeAndFillContainer​(DeathChest deathChest)
        Places and fills the specified death chest.
        Parameters:
        deathChest - a death chest.
        Returns:
        true if the placement is successful, or otherwise false.
      • spawnDefenseEntities

        public static void spawnDefenseEntities​(DeathChest deathChest)
        Spawns the defense entities for the specified death chest.
        Parameters:
        deathChest - a death chest.