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 ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classNested 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
FieldsModifier and TypeFieldDescriptionintInner rotation of a beam.static final StringThe name of the NBT tag that will hold the player id.static final StringThe name of the NBT tag that will hold the player name.static final StringThe name of the NBT tag that will hold spirit entity data.static final floatThe lid angle for when this box is open.Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityBoxOfEternalClosure(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()floatfloatnet.minecraft.world.phys.AABBnet.minecraft.nbt.CompoundTagstatic net.minecraft.world.entity.EntityType<?>getSpiritType(net.minecraft.nbt.CompoundTag tag) getState()booleanvoidbooleanisClosed()voidopen()voidread(net.minecraft.nbt.CompoundTag tag) voidsetPlayerId(String playerId) voidsetPlayerName(String playerName) voidsetSpiritTag(net.minecraft.nbt.CompoundTag tag) protected voidMethods 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, writeToItemStackMethods 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, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable
reduceUpdateBackoff, sendImmediateUpdateMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, requestModelDataUpdate, serializeNBT
-
Field Details
-
NBTKEY_SPIRIT
The name of the NBT tag that will hold spirit entity data.- See Also:
-
NBTKEY_PLAYERID
The name of the NBT tag that will hold the player id.- See Also:
-
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_ANGLEThe lid angle for when this box is open.- See Also:
-
innerRotation
public int innerRotationInner 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
-
setPlayerId
-
getPlayerName
-
setPlayerName
-
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
-
getSpiritData
-
getRenderBoundingBox
public net.minecraft.world.phys.AABB getRenderBoundingBox() -
read
public void read(net.minecraft.nbt.CompoundTag tag) - Overrides:
readin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-