Class RannuncarpusBlockEntity

All Implemented Interfaces:
Bound, FloatingFlowerProvider, Wandable, WandBindable
Direct Known Subclasses:
RannuncarpusBlockEntity.Mini

public class RannuncarpusBlockEntity extends FunctionalFlowerBlockEntity implements Wandable
  • Field Details

  • Constructor Details

    • RannuncarpusBlockEntity

      protected RannuncarpusBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • RannuncarpusBlockEntity

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

    • tickFlower

      public void tickFlower()
      Overrides:
      tickFlower in class FunctionalFlowerBlockEntity
    • getUnderlyingBlock

      public net.minecraft.world.level.block.state.BlockState getUnderlyingBlock()
    • acceptsRedstone

      public boolean acceptsRedstone()
      Description copied from class: FunctionalFlowerBlockEntity
      If set to true, redstoneSignal will be updated every tick.
      Overrides:
      acceptsRedstone in class FunctionalFlowerBlockEntity
    • 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 FunctionalFlowerBlockEntity
    • 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 FunctionalFlowerBlockEntity
    • onUsedByWand

      public boolean onUsedByWand(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.Direction side)
      Description copied from interface: Wandable
      Called when the block is used by a wand.
      Specified by:
      onUsedByWand in interface Wandable
      Parameters:
      player - Null if the block is being wanded by a dispenser
    • 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
    • getSecondaryRadius

      public RadiusDescriptor getSecondaryRadius()
      Description copied from class: SpecialFlowerBlockEntity
      Returns a descriptor for this flower's secondary radius. Use for e.g. when a flower has different ranges for picking up and using dropped items. Called when the player is looking at the block with a Manaseer Monocle.
      Overrides:
      getSecondaryRadius in class SpecialFlowerBlockEntity
    • getPlaceRange

      public int getPlaceRange()
    • getVerticalPlaceRange

      public int getVerticalPlaceRange()
    • getMaxMana

      public int getMaxMana()
      Specified by:
      getMaxMana in class BindableSpecialFlowerBlockEntity<ManaPool>
    • getColor

      public int getColor()
      Specified by:
      getColor in class BindableSpecialFlowerBlockEntity<ManaPool>