Class AphorismTileBlockEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
me.desht.pneumaticcraft.common.block.entity.AphorismTileBlockEntity
All Implemented Interfaces:
IGUIButtonSensitive, ILuaMethodProvider, IDescSynced, IUpgradeHolder, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class AphorismTileBlockEntity extends AbstractPneumaticCraftBlockEntity
  • Field Details

  • Constructor Details

    • AphorismTileBlockEntity

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

    • getPrimaryInventory

      public net.minecraftforge.items.IItemHandler getPrimaryInventory()
      Specified by:
      getPrimaryInventory in class AbstractPneumaticCraftBlockEntity
    • shouldPreserveStateOnBreak

      public boolean shouldPreserveStateOnBreak()
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Should this block entity preserve its state (currently: upgrades and stored air) when broken? By default this is true when sneak-wrenched, and false when broken by pick.
      Overrides:
      shouldPreserveStateOnBreak in class AbstractPneumaticCraftBlockEntity
      Returns:
      true if state should be preserved, false otherwise
    • serializeExtraItemData

      public void serializeExtraItemData(net.minecraft.nbt.CompoundTag blockEntityTag, boolean preserveState)
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Get any extra data to be serialized onto a dropped item stack. The supplied tag is the "BlockEntityTag" subtag of the item's NBT data, so will be automatically deserialized into the BE (i.e. available to BlockEntity.load(CompoundTag) method) when the itemblock is next placed.
      Overrides:
      serializeExtraItemData in class AbstractPneumaticCraftBlockEntity
      Parameters:
      blockEntityTag - the existing "BlockEntityTag" subtag to add data to
      preserveState - true when dropped with a wrench, false when broken with a pickaxe etc.
    • writeToPacket

      public void writeToPacket(net.minecraft.nbt.CompoundTag tag)
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Encoded into the description packet. Also included in saved data written by BlockEntity.saveAdditional(CompoundTag) Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced, or for non-ticking tile entities.
      Specified by:
      writeToPacket in interface IDescSynced
      Overrides:
      writeToPacket in class AbstractPneumaticCraftBlockEntity
      Parameters:
      tag - NBT tag
    • readFromPacket

      public void readFromPacket(net.minecraft.nbt.CompoundTag tag)
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Encoded into the description packet. Also included in saved data read by AbstractPneumaticCraftBlockEntity.load(CompoundTag). Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced, or for non-ticking tile entities.
      Specified by:
      readFromPacket in interface IDescSynced
      Overrides:
      readFromPacket in class AbstractPneumaticCraftBlockEntity
      Parameters:
      tag - NBT tag
    • getTextLines

      public String[] getTextLines()
    • setTextLines

      public void setTextLines(String[] textLines)
    • setTextLines

      public void setTextLines(String[] textLines, boolean notifyClient)
    • getIconAt

      public net.minecraft.world.item.ItemStack getIconAt(int line)
    • isRedstoneLine

      public boolean isRedstoneLine(int line)
    • setBorderColor

      public void setBorderColor(int color)
    • getBorderColor

      public int getBorderColor()
    • getBackgroundColor

      public int getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(int color)
    • getMarginSize

      public byte getMarginSize()
    • setMarginSize

      public void setMarginSize(int marginSize)
    • isInvisible

      public boolean isInvisible()
    • setInvisible

      public void setInvisible(boolean invisible)
    • getMaxLineWidth

      public int getMaxLineWidth(boolean editing)
    • needMaxLineWidthRecalc

      public void needMaxLineWidthRecalc()
    • pollRedstone

      public int pollRedstone()
    • getCursorPos

      public org.apache.commons.lang3.tuple.Pair<Integer,Integer> getCursorPos()
    • setCursorPos

      public void setCursorPos(int cursorX, int cursorY)