Class HopperhockBlockEntity

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

public class HopperhockBlockEntity extends FunctionalFlowerBlockEntity implements Wandable
  • Constructor Details

    • HopperhockBlockEntity

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

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

    • tickFlower

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

      public static boolean canAcceptItem(net.minecraft.world.item.ItemStack stack, List<net.minecraft.world.item.ItemStack> filter, int filterType)
    • getFilterForInventory

      public static List<net.minecraft.world.item.ItemStack> getFilterForInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, boolean recursiveForDoubleChests)
    • acceptsRedstone

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

      public int getRange()
    • 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
    • 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
    • getMaxMana

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

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