Class ShulkerBoxBlockEntityMixin

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
com.petrolpark.mixin.ShulkerBoxBlockEntityMixin
All Implemented Interfaces:
IShulkerBoxBlockEntityDuck, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable, net.minecraft.world.RandomizableContainer, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.client.extensions.IMenuProviderExtension, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public abstract class ShulkerBoxBlockEntityMixin extends net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity implements IShulkerBoxBlockEntityDuck
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

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

    lootTable, lootTableSeed

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

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER

    Fields inherited from interface net.minecraft.world.RandomizableContainer

    LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ShulkerBoxBlockEntityMixin(net.minecraft.world.level.block.entity.BlockEntityType<?> pType, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pBlockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contaminateAll(Stream<net.minecraft.core.Holder<Contaminant>> contaminants)
     
     
    void
    petrolpark$createContamination(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     
    void
    petrolpark$loadContamination(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider levelRegistry, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     
    void
    petrolpark$saveContamination(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider levelRegistry, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     

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

    applyImplicitComponents, canOpen, collectImplicitComponents, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeed

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

    canUnlock, clearContent, createMenu, getCustomName, getDefaultName, getDisplayName, getItems, getName, loadAdditional, saveAdditional, setItems, stillValid

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

    addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Clearable

    clearContent

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getContainerSize, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stillValid, stopOpen

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension

    shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName

    Methods inherited from interface net.minecraft.world.RandomizableContainer

    getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
  • Constructor Details

    • ShulkerBoxBlockEntityMixin

      protected ShulkerBoxBlockEntityMixin(net.minecraft.world.level.block.entity.BlockEntityType<?> pType, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pBlockState)
  • Method Details

    • getContamination

      public GenericContamination getContamination()
      Specified by:
      getContamination in interface IShulkerBoxBlockEntityDuck
    • contaminateAll

      public void contaminateAll(Stream<net.minecraft.core.Holder<Contaminant>> contaminants)
      Specified by:
      contaminateAll in interface IShulkerBoxBlockEntityDuck
    • petrolpark$createContamination

      public void petrolpark$createContamination(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • petrolpark$loadContamination

      public void petrolpark$loadContamination(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider levelRegistry, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • petrolpark$saveContamination

      public void petrolpark$saveContamination(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider levelRegistry, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)