Class TRedstoneTile

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
codechicken.multipart.block.TileMultipart
codechicken.multipart.trait.TRedstoneTile
All Implemented Interfaces:
codechicken.lib.world.IChunkLoadTile, RedstoneConnector, RedstoneTile, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class TRedstoneTile extends TileMultipart implements RedstoneTile
Created by covers1624 on 31/12/20.
  • Constructor Details

    • TRedstoneTile

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

    • getDirectSignal

      public int getDirectSignal(int side)
      Overrides:
      getDirectSignal in class TileMultipart
    • getSignal

      public int getSignal(int side)
      Overrides:
      getSignal in class TileMultipart
    • canConnectRedstone

      public boolean canConnectRedstone(int side)
      Overrides:
      canConnectRedstone in class TileMultipart
    • getConnectionMask

      public int getConnectionMask(int side)
      Description copied from interface: RedstoneConnector
      Returns the connection mask of this tile for the given side.
      Specified by:
      getConnectionMask in interface RedstoneConnector
      Parameters:
      side - The side index.
      Returns:
      The connection mask.
    • weakPowerLevel

      public int weakPowerLevel(int side, int mask)
      Description copied from interface: RedstoneConnector
      Returns the weak power level provided by this tile on the given side, through the given mask.
      Specified by:
      weakPowerLevel in interface RedstoneConnector
      Parameters:
      side - The side index.
      mask - The connection mask.
      Returns:
      The redstone signal.
    • openConnections

      public int openConnections(int side)
      Description copied from interface: RedstoneTile
      Returns the mask of spaces through which a wire could connect on a side.
      Specified by:
      openConnections in interface RedstoneTile
      Parameters:
      side - The side index.
      Returns:
      The mask.