Class ContraptionControlsBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class ContraptionControlsBlockEntity extends SmartBlockEntity
  • Field Details

    • filtering

      public FilteringBehaviour filtering
    • disabled

      public boolean disabled
    • powered

      public boolean powered
    • indicator

      public net.createmod.catnip.animation.LerpedFloat indicator
    • button

      public net.createmod.catnip.animation.LerpedFloat button
  • Constructor Details

    • ContraptionControlsBlockEntity

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

    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartBlockEntity
    • pressButton

      public void pressButton()
    • updatePoweredState

      public void updatePoweredState()
    • initialize

      public void initialize()
      Overrides:
      initialize in class SmartBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class SmartBlockEntity
    • tickAnimations

      public void tickAnimations()
    • read

      protected void read(net.minecraft.nbt.CompoundTag tag, 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 SmartBlockEntity
    • write

      protected void write(net.minecraft.nbt.CompoundTag tag, 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 SmartBlockEntity
    • sendStatus

      public static void sendStatus(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack filter, boolean enabled)