Class FluidGeneratorBlockEntity

All Implemented Interfaces:
Bound, FloatingFlowerProvider, WandBindable
Direct Known Subclasses:
HydroangeasBlockEntity, ThermalilyBlockEntity

public abstract class FluidGeneratorBlockEntity extends GeneratingFlowerBlockEntity
  • Field Details

  • Constructor Details

    • FluidGeneratorBlockEntity

      protected FluidGeneratorBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> consumedFluid, int startBurnTime, int manaPerTick)
  • Method Details

    • tickFlower

      public void tickFlower()
      Overrides:
      tickFlower in class GeneratingFlowerBlockEntity
    • getCooldownTime

      public abstract int getCooldownTime(boolean finishedPrevious)
    • getGenerationDelay

      public int getGenerationDelay()
    • doBurnParticles

      public abstract void doBurnParticles()
    • playSound

      public abstract void playSound()
    • writeToPacketNBT

      public void writeToPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from class: SpecialFlowerBlockEntity
      Writes some extra data to a network packet. This data is read by readFromPacketNBT on the client that receives the packet. Note: This method is also used to write to the world NBT.
      Overrides:
      writeToPacketNBT in class GeneratingFlowerBlockEntity
    • readFromPacketNBT

      public void readFromPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from class: SpecialFlowerBlockEntity
      Reads data from a network packet. This data is written by writeToPacketNBT in the server. Note: This method is also used to read from the world NBT.
      Overrides:
      readFromPacketNBT in class GeneratingFlowerBlockEntity
    • getRadius

      public RadiusDescriptor getRadius()
      Description copied from class: SpecialFlowerBlockEntity
      Returns a descriptor for the radius of this sub tile. This is called while a player is looking at the block with a Manaseer Monocle.
      Specified by:
      getRadius in class SpecialFlowerBlockEntity