Package com.cake.azimuth.mixin
Class SmartBlockEntityMixin
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
com.cake.azimuth.mixin.SmartBlockEntityMixin
- All Implemented Interfaces:
AzimuthSmartBlockEntityExtension,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public abstract class SmartBlockEntityMixin
extends com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
implements AzimuthSmartBlockEntityExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested 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.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSmartBlockEntityMixin(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidazimuth$addCacheClearListener(Runnable cacheClearListener) voidazimuth$constructWithAdditionalBehaviours(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) <T> List<T> voidUpdates the quick-access cache for performance adjacent block entity behaviours.Methods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, readClient, sendData, writeClientMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadAdditional, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveAdditional, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
-
Constructor Details
-
SmartBlockEntityMixin
public SmartBlockEntityMixin(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
azimuth$constructWithAdditionalBehaviours
public void azimuth$constructWithAdditionalBehaviours(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) -
azimuth$updateBehaviourExtensionCache
public void azimuth$updateBehaviourExtensionCache()Description copied from interface:AzimuthSmartBlockEntityExtensionUpdates the quick-access cache for performance adjacent block entity behaviours. Only necessary for deferred behaviours. Shouldn't really be used, just here whenever I get round to auto invalidation.- Specified by:
azimuth$updateBehaviourExtensionCachein interfaceAzimuthSmartBlockEntityExtension
-
azimuth$searchExtensionBehaviours
- Specified by:
azimuth$searchExtensionBehavioursin interfaceAzimuthSmartBlockEntityExtension
-
azimuth$searchSuperBehaviours
- Specified by:
azimuth$searchSuperBehavioursin interfaceAzimuthSmartBlockEntityExtension
-
azimuth$addCacheClearListener
- Specified by:
azimuth$addCacheClearListenerin interfaceAzimuthSmartBlockEntityExtension
-
azimuth$getSuperBehaviours
- Specified by:
azimuth$getSuperBehavioursin interfaceAzimuthSmartBlockEntityExtension
-
azimuth$getItemRequirementExtensionCache
- Specified by:
azimuth$getItemRequirementExtensionCachein interfaceAzimuthSmartBlockEntityExtension
-
azimuth$getRenderedExtensionCache
- Specified by:
azimuth$getRenderedExtensionCachein interfaceAzimuthSmartBlockEntityExtension
-
azimuth$getKineticExtensionCache
- Specified by:
azimuth$getKineticExtensionCachein interfaceAzimuthSmartBlockEntityExtension
-