Class PetalApothecaryBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
net.minecraft.world.Clearable, PetalApothecary

public class PetalApothecaryBlockEntity extends SimpleInventoryBlockEntity implements PetalApothecary
  • Constructor Details

    • PetalApothecaryBlockEntity

      public PetalApothecaryBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • collideEntityItem

      public boolean collideEntityItem(net.minecraft.world.entity.item.ItemEntity item)
    • saveLastRecipe

      public void saveLastRecipe(net.minecraft.world.item.crafting.Ingredient reagent)
    • clearLastRecipe

      public void clearLastRecipe()
    • trySetLastRecipe

      public net.minecraft.world.ItemInteractionResult trySetLastRecipe(net.minecraft.world.entity.player.Player player)
    • isEmpty

      public boolean isEmpty()
    • serverTick

      public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self)
    • clientTick

      public static void clientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self)
    • triggerEvent

      public boolean triggerEvent(int id, int param)
      Overrides:
      triggerEvent in class net.minecraft.world.level.block.entity.BlockEntity
    • createItemHandler

      protected net.minecraft.world.SimpleContainer createItemHandler()
      Specified by:
      createItemHandler in class SimpleInventoryBlockEntity
    • setFluid

      public void setFluid(PetalApothecary.State fluid)
      Description copied from interface: PetalApothecary
      Set the contained fluid.
      Specified by:
      setFluid in interface PetalApothecary
    • setFluid

      public void setFluid(PetalApothecary.State fluid, boolean withVibration)
    • getFluid

      public PetalApothecary.State getFluid()
      Description copied from interface: PetalApothecary
      Get the contained fluid.
      Specified by:
      getFluid in interface PetalApothecary
    • canAddLastRecipe

      public boolean canAddLastRecipe()