Class ArcaneWorkbenchBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
com.binaris.wizardry.content.blockentity.ArcaneWorkbenchBlockEntity
- All Implemented Interfaces:
dev.onyxstudios.cca.api.v3.component.ComponentAccess,net.fabricmc.fabric.api.attachment.v1.AttachmentTarget,net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity,net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory,net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraft.world.Nameable
public class ArcaneWorkbenchBlockEntity
extends net.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
NBT_ATTACHMENT_KEYFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionArcaneWorkbenchBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int slotNumber, @NotNull net.minecraft.world.item.ItemStack itemstack) voidstatic voidclientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ArcaneWorkbenchBlockEntity entity) protected @NotNull net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int containerId, @NotNull net.minecraft.world.entity.player.Inventory inventory) intprotected @NotNull net.minecraft.network.chat.Component@NotNull net.minecraft.world.item.ItemStackgetItem(int slot) @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>@NotNull net.minecraft.nbt.CompoundTagbooleanbooleanisEmpty()voidload(@NotNull net.minecraft.nbt.CompoundTag tag) @NotNull net.minecraft.world.item.ItemStackremoveItem(int slot, int amount) @NotNull net.minecraft.world.item.ItemStackremoveItemNoUpdate(int slot) voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag) static voidserverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ArcaneWorkbenchBlockEntity entity) voidsetItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) voidsync()Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canOpen, canUnlock, createMenu, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttachedMethods inherited from interface dev.onyxstudios.cca.api.v3.component.ComponentAccess
asComponentProvider, getComponent, syncComponent, syncComponent, syncComponentMethods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpenMethods inherited from interface net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory
shouldCloseCurrentScreenMethods inherited from interface net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity
getRenderData
-
Field Details
-
timer
public float timer -
rot
public float rot -
oRot
public float oRot -
tRot
public float tRot
-
-
Constructor Details
-
ArcaneWorkbenchBlockEntity
public ArcaneWorkbenchBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
serverTick
public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ArcaneWorkbenchBlockEntity entity) -
clientTick
public static void clientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ArcaneWorkbenchBlockEntity entity) -
sync
public void sync() -
getContainerSize
public int getContainerSize() -
getItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack getItem(int slot) -
setItem
public void setItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) -
removeItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItem(int slot, int amount) -
removeItemNoUpdate
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot) -
hasCustomName
public boolean hasCustomName() -
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) -
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
canPlaceItem
public boolean canPlaceItem(int slotNumber, @NotNull @NotNull net.minecraft.world.item.ItemStack itemstack) -
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
saveAdditional
public void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
createMenu
@NotNull protected @NotNull net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, @NotNull @NotNull net.minecraft.world.entity.player.Inventory inventory) - Specified by:
createMenuin classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
clearContent
public void clearContent() -
isEmpty
public boolean isEmpty() -
getDefaultName
@NotNull protected @NotNull net.minecraft.network.chat.Component getDefaultName()- Specified by:
getDefaultNamein classnet.minecraft.world.level.block.entity.BaseContainerBlockEntity
-
getUpdatePacket
@Nullable public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-