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

    Fields
    Modifier and Type
    Field
    Description
    float
     
    float
     
    float
     
    float
     

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

    level, remove, worldPosition

    Fields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    NBT_ATTACHMENT_KEY

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArcaneWorkbenchBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int slotNumber, @NotNull net.minecraft.world.item.ItemStack itemstack)
     
    void
     
    static void
    clientTick(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.AbstractContainerMenu
    createMenu(int containerId, @NotNull net.minecraft.world.entity.player.Inventory inventory)
     
    int
     
    protected @NotNull net.minecraft.network.chat.Component
     
    @NotNull net.minecraft.world.item.ItemStack
    getItem(int slot)
     
    @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    @NotNull net.minecraft.nbt.CompoundTag
     
    boolean
     
    boolean
     
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    @NotNull net.minecraft.world.item.ItemStack
    removeItem(int slot, int amount)
     
    @NotNull net.minecraft.world.item.ItemStack
     
    void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    static void
    serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ArcaneWorkbenchBlockEntity entity)
     
    void
    setItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player player)
     
    void
     

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

    canOpen, canUnlock, createMenu, getCustomName, getDisplayName, getName, setCustomName

    Methods 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, triggerEvent

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttached

    Methods inherited from interface dev.onyxstudios.cca.api.v3.component.ComponentAccess

    asComponentProvider, getComponent, syncComponent, syncComponent, syncComponent

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen

    Methods inherited from interface net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory

    shouldCloseCurrentScreen

    Methods 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:
      getUpdateTag in class net.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:
      load in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • saveAdditional

      public void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.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:
      createMenu in class net.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:
      getDefaultName in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • getUpdatePacket

      @Nullable public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity