Class WaterWheelBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Direct Known Subclasses:
LargeWaterWheelBlockEntity

public class WaterWheelBlockEntity extends GeneratingKineticBlockEntity
  • Field Details

    • SMALL_OFFSETS

      public static final Map<net.minecraft.core.Direction.Axis,Set<net.minecraft.core.BlockPos>> SMALL_OFFSETS
    • LARGE_OFFSETS

      public static final Map<net.minecraft.core.Direction.Axis,Set<net.minecraft.core.BlockPos>> LARGE_OFFSETS
    • flowScore

      public int flowScore
    • material

      public net.minecraft.world.level.block.state.BlockState material
  • Constructor Details

    • WaterWheelBlockEntity

      public WaterWheelBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getSize

      protected int getSize()
    • getOffsetsToCheck

      protected Set<net.minecraft.core.BlockPos> getOffsetsToCheck()
    • applyMaterialIfValid

      public net.minecraft.world.ItemInteractionResult applyMaterialIfValid(net.minecraft.world.item.ItemStack stack)
    • getAxis

      protected net.minecraft.core.Direction.Axis getAxis()
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • determineAndApplyFlowScore

      public void determineAndApplyFlowScore()
    • getFlowVectorAtPosition

      public net.minecraft.world.phys.Vec3 getFlowVectorAtPosition(net.minecraft.core.BlockPos pos)
    • setFlowScoreAndUpdate

      public void setFlowScoreAndUpdate(int score)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticBlockEntity
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: PartialSafeNBT
      This will always be called from the logical server
      Specified by:
      writeSafe in interface PartialSafeNBT
      Overrides:
      writeSafe in class SmartBlockEntity
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticBlockEntity
    • createRenderBoundingBox

      protected net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class CachedRenderBBBlockEntity
    • getGeneratedSpeed

      public float getGeneratedSpeed()
      Overrides:
      getGeneratedSpeed in class KineticBlockEntity