Class CatalyzingBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.codinglitch.simpleradio.core.registry.blocks.AuditoryBlockEntity
com.codinglitch.simpleradio.core.registry.blocks.CatalyzingBlockEntity
All Implemented Interfaces:
Socket
Direct Known Subclasses:
ReceiverBlockEntity, TransmitterBlockEntity

public abstract class CatalyzingBlockEntity extends AuditoryBlockEntity
A block entity containing a catalyst.
  • Field Details

    • catalyst

      public Catalyst catalyst
    • catalyzed

      public boolean catalyzed
  • Constructor Details

    • CatalyzingBlockEntity

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

    • trySwapCatalyst

      public net.minecraft.world.InteractionResult trySwapCatalyst(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult result)
    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, CatalyzingBlockEntity blockEntity)
    • getAdaptorLocation

      public abstract net.minecraft.core.BlockPos getAdaptorLocation()
    • loadTag

      public void loadTag(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      loadTag in class AuditoryBlockEntity
    • saveTag

      public void saveTag(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveTag in class AuditoryBlockEntity