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, net.fabricmc.fabric.api.attachment.v1.AttachmentTarget, net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity
Direct Known Subclasses:
ReceiverBlockEntity, TransmitterBlockEntity

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

    Fields
    Modifier and Type
    Field
    Description
     
    boolean
     

    Fields inherited from class com.codinglitch.simpleradio.core.registry.blocks.AuditoryBlockEntity

    frequency, id, listener, receiver, speaker, transmitter

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    NBT_ATTACHMENT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CatalyzingBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract net.minecraft.core.BlockPos
     
    void
    loadTag(net.minecraft.nbt.CompoundTag tag)
     
    void
    saveTag(net.minecraft.nbt.CompoundTag tag)
     
    static void
    tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, CatalyzingBlockEntity blockEntity)
     
    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)
     

    Methods inherited from class com.codinglitch.simpleradio.core.registry.blocks.AuditoryBlockEntity

    getConnectionPosition, getRouter, getUpdatePacket, getUpdateTag, loadFromItem, saveAdditional, setLevel

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, load, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setRemoved, triggerEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttached

    Methods inherited from interface net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity

    getRenderData

    Methods inherited from interface com.codinglitch.simpleradio.api.central.Socket

    canConnect, canConnectTo, connect, disconnect, disconnect, distribute, getIdentifier, getReference, getWires, hasWire, hasWire, shortCircuit
  • 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