Class StoneAltarBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
de.teamlapen.lib.lib.blockentity.InventoryBlockEntity
de.teamlapen.werewolves.blocks.entity.StoneAltarBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,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 StoneAltarBlockEntity
extends de.teamlapen.lib.lib.blockentity.InventoryBlockEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested 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 inherited from class de.teamlapen.lib.lib.blockentity.InventoryBlockEntity
inventorySlots, MAX_DIST_SQRT, selectorsFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionStoneAltarBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidcanActivate(net.minecraft.world.entity.player.Player player) voidcleanup()voidprotected net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory) voidprotected net.minecraft.network.chat.Componentnet.minecraft.network.protocol.game.ClientboundBlockEntityDataPacketnet.minecraft.nbt.CompoundTagvoidhandleUpdateTag(net.minecraft.nbt.CompoundTag tag) voidload(net.minecraft.nbt.CompoundTag tagCompound) booleanloadRitual(UUID playerUuid) voidonDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) voidsaveAdditional(net.minecraft.nbt.CompoundTag compound) voidsetItem(int slot, net.minecraft.world.item.ItemStack stack) voidsetPlayer(net.minecraft.world.entity.player.Player player) voidstartRitual(net.minecraft.world.level.block.state.BlockState state) Needs to be called aftersetPlayer(Player)static voidtick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StoneAltarBlockEntity blockEntity) Methods inherited from class de.teamlapen.lib.lib.blockentity.InventoryBlockEntity
canPlaceItem, clearContent, createWrapper, getContainerSize, getItem, isEmpty, isFull, removeItem, removeItemNoUpdate, startOpen, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canOpen, canUnlock, createMenu, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, setCustomNameMethods 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, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, stopOpenMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.minecraft.world.inventory.MenuConstructor
createMenuMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Constructor Details
-
StoneAltarBlockEntity
public StoneAltarBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StoneAltarBlockEntity blockEntity) -
aboardRitual
public void aboardRitual() -
loadRitual
-
startRitual
public void startRitual(net.minecraft.world.level.block.state.BlockState state) Needs to be called aftersetPlayer(Player) -
setPlayer
public void setPlayer(net.minecraft.world.entity.player.Player player) -
setItem
public void setItem(int slot, @Nonnull net.minecraft.world.item.ItemStack stack) - Specified by:
setItemin interfacenet.minecraft.world.Container- Overrides:
setItemin classde.teamlapen.lib.lib.blockentity.InventoryBlockEntity
-
cleanup
public void cleanup() -
endRitual
public void endRitual() -
consumeItems
public void consumeItems() -
getCurrentPhase
-
canActivate
-
getMissingItems
-
getDefaultName
@Nonnull protected net.minecraft.network.chat.Component getDefaultName()- Specified by:
getDefaultNamein classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
createMenu
@Nonnull protected net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, @Nonnull net.minecraft.world.entity.player.Inventory playerInventory) - Specified by:
createMenuin classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
getUpdatePacket
@Nullable public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
@Nonnull public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) -
handleUpdateTag
public void handleUpdateTag(net.minecraft.nbt.CompoundTag tag) -
load
public void load(@Nonnull net.minecraft.nbt.CompoundTag tagCompound) - Overrides:
loadin classde.teamlapen.lib.lib.blockentity.InventoryBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag compound) - Overrides:
saveAdditionalin classde.teamlapen.lib.lib.blockentity.InventoryBlockEntity
-