Class BlockEntityBoxOfEternalClosure

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
org.cyclops.evilcraft.blockentity.BlockEntityBoxOfEternalClosure
All Implemented Interfaces:
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>, org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable, org.cyclops.cyclopscore.persist.IDirtyMarkListener, org.cyclops.cyclopscore.persist.nbt.INBTProvider

public class BlockEntityBoxOfEternalClosure extends org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
A chest that is able to repair tools with the use of blood. Partially based on cpw's IronChests.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Inner rotation of a beam.
    static final String
    The name of the NBT tag that will hold the player id.
    static final String
    The name of the NBT tag that will hold the player name.
    static final String
    The name of the NBT tag that will hold spirit entity data.
    static final float
    The lid angle for when this box is open.

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

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockEntityBoxOfEternalClosure(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    float
     
     
     
    float
     
    net.minecraft.world.phys.AABB
     
     
    net.minecraft.nbt.CompoundTag
     
    static net.minecraft.world.entity.EntityType<?>
    getSpiritType(net.minecraft.nbt.CompoundTag tag)
     
     
     
    boolean
     
    void
     
    boolean
     
    void
     
    void
    read(net.minecraft.nbt.CompoundTag tag)
     
    void
    setPlayerId(String playerId)
     
    void
    setPlayerName(String playerName)
     
    void
    setSpiritTag(net.minecraft.nbt.CompoundTag tag)
     
    protected void
     

    Methods inherited from class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity

    addCapabilityInternal, addCapabilitySided, canInteractWith, getCapability, getRotation, getStoredCapabilities, getUpdateBackoff, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, load, onDataPacket, onDirty, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, saveAdditional, sendUpdate, setUpdateBackoff, shouldSendUpdate, transformFacingForRotation, unsetSendUpdate, writeGeneratedFieldsToNBT, writeToItemStack

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

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

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable

    reduceUpdateBackoff, sendImmediateUpdate

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, handleUpdateTag, requestModelDataUpdate, serializeNBT
  • Field Details

    • NBTKEY_SPIRIT

      public static final String NBTKEY_SPIRIT
      The name of the NBT tag that will hold spirit entity data.
      See Also:
    • NBTKEY_PLAYERID

      public static final String NBTKEY_PLAYERID
      The name of the NBT tag that will hold the player id.
      See Also:
    • NBTKEY_PLAYERNAME

      public static final String NBTKEY_PLAYERNAME
      The name of the NBT tag that will hold the player name.
      See Also:
    • START_LID_ANGLE

      public static final float START_LID_ANGLE
      The lid angle for when this box is open.
      See Also:
    • innerRotation

      public int innerRotation
      Inner rotation of a beam.
  • Constructor Details

    • BlockEntityBoxOfEternalClosure

      public BlockEntityBoxOfEternalClosure(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
      Make a new instance.
  • Method Details

    • getSpiritType

      @Nullable public static net.minecraft.world.entity.EntityType<?> getSpiritType(@Nullable net.minecraft.nbt.CompoundTag tag)
    • getSpiritTag

      public net.minecraft.nbt.CompoundTag getSpiritTag()
    • getPlayerId

      public String getPlayerId()
    • setPlayerId

      public void setPlayerId(String playerId)
    • getPlayerName

      public String getPlayerName()
    • setPlayerName

      public void setPlayerName(String playerName)
    • setSpiritTag

      public void setSpiritTag(net.minecraft.nbt.CompoundTag tag)
    • isClosed

      public boolean isClosed()
    • getState

    • hasSpirit

      public boolean hasSpirit()
    • open

      public void open()
    • close

      public void close()
    • initializeState

      public void initializeState()
    • updateLight

      protected void updateLight()
    • getLidAngle

      public float getLidAngle()
    • getPreviousLidAngle

      public float getPreviousLidAngle()
    • getTargetSpirit

      public EntityVengeanceSpirit getTargetSpirit()
    • getSpiritData

      public EntityVengeanceSpiritData getSpiritData()
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
    • read

      public void read(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      read in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity