Class DisplayCaseBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.blamejared.dustydiscoveries.world.level.block.entity.DisplayCaseBlockEntity
All Implemented Interfaces:
Iterable<net.minecraft.world.item.ItemStack>, net.fabricmc.fabric.api.attachment.v1.AttachmentTarget, net.fabricmc.fabric.api.blockgetter.v2.RenderDataBlockEntity, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.entity.ItemOwner, net.minecraft.world.entity.SlotProvider, net.minecraft.world.ticks.ContainerSingleItem, net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem

public class DisplayCaseBlockEntity extends net.minecraft.world.level.block.entity.BlockEntity implements net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem, net.minecraft.world.entity.ItemOwner
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    net.fabricmc.fabric.api.attachment.v1.AttachmentTarget.OnAttachedSet<A>

    Nested classes/interfaces inherited from interface net.minecraft.world.Container

    net.minecraft.world.Container.ContainerIterator

    Nested classes/interfaces inherited from interface net.minecraft.world.ticks.ContainerSingleItem

    net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem

    Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource

    net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T>

    Nested classes/interfaces inherited from interface net.minecraft.world.entity.ItemOwner

    net.minecraft.world.entity.ItemOwner.OffsetFromOwner
  • Field Summary

    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_BUFFER
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.entity.BlockEntity
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    net.minecraft.nbt.CompoundTag
    getUpdateTag(net.minecraft.core.HolderLookup.Provider registries)
     
    float
     
    net.minecraft.world.level.Level
     
    protected void
    loadAdditional(net.minecraft.world.level.storage.ValueInput input)
     
    net.minecraft.world.phys.Vec3
     
     
    void
     
    protected void
    saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
     
    void
    setTheItem(net.minecraft.world.item.ItemStack itemStack)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

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

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent, typeHolder

    Methods inherited from class 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, onAttachedSet, removeAttached, setAttached

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpen

    Methods inherited from interface net.minecraft.world.ticks.ContainerSingleItem

    clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItem, splitTheItem

    Methods inherited from interface net.minecraft.world.entity.ItemOwner

    asLivingEntity

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface net.fabricmc.fabric.api.blockgetter.v2.RenderDataBlockEntity

    getRenderData

    Methods inherited from interface net.minecraft.world.entity.SlotProvider

    getSlotsFromRange

    Methods inherited from interface net.minecraft.core.TypedInstance

    is, is, is, is, is, tags
  • Constructor Details

    • DisplayCaseBlockEntity

      public DisplayCaseBlockEntity(net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • saveAdditional

      protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • loadAdditional

      protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getTheItem

      public net.minecraft.world.item.ItemStack getTheItem()
      Specified by:
      getTheItem in interface net.minecraft.world.ticks.ContainerSingleItem
    • setTheItem

      public void setTheItem(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      setTheItem in interface net.minecraft.world.ticks.ContainerSingleItem
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
      Specified by:
      stillValid in interface net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem
    • getContainerBlockEntity

      public net.minecraft.world.level.block.entity.BlockEntity getContainerBlockEntity()
      Specified by:
      getContainerBlockEntity in interface net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem
    • getUpdatePacket

      public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • level

      public net.minecraft.world.level.Level level()
      Specified by:
      level in interface net.minecraft.world.entity.ItemOwner
    • position

      public net.minecraft.world.phys.Vec3 position()
      Specified by:
      position in interface net.minecraft.world.entity.ItemOwner
    • getVisualRotationYInDegrees

      public float getVisualRotationYInDegrees()
      Specified by:
      getVisualRotationYInDegrees in interface net.minecraft.world.entity.ItemOwner
    • rotation

    • rotation

      public void rotation(DisplayCaseBlockEntity.DisplayRotation rotation)