Package codechicken.multipart.trait
Class TCapabilityTile
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
codechicken.multipart.block.TileMultipart
codechicken.multipart.trait.TCapabilityTile
- All Implemented Interfaces:
codechicken.lib.world.IChunkLoadTile,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Created by covers1624 on 7/1/21.
-
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
ConstructorsConstructorDescriptionTCapabilityTile(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescription<T,C> T getCapability(net.neoforged.neoforge.capabilities.BlockCapability<T, C> capability, C context) Called via our global capability registration.Methods inherited from class codechicken.multipart.block.TileMultipart
addLandingEffects, addPart, addPart_do, addPart_impl, addRunningEffects, animateTick, attack, bindPart, canAddPart, canConnectRedstone, canPlacePart, canReplacePart, clearParts, copyFrom, dropItem, dropItems, entityInside, from, fromNBT, getBlockSupportShape, getCapCache, getCloneStack, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getExplosionResistance, getInteractionShape, getPartList, getRenderOcclusionShape, getShape, getSignal, getSlottedPart, getUpdateTag, getVisualShape, getWeakChanges, handleDescPacket, handleUpdateTag, harvestPart, internalPartChange, isClientTile, isUnobstructed, loadFrom, loadTo, markRender, markShapeChange, multiPartChange, notifyNeighborChange, notifyNeighborChange, notifyPartChange, notifyShapeChange, notifyTileChange, occlusionTest, onChunkLoad, onChunkUnloaded, onMoved, onNeighborBlockChanged, onNeighborTileChange, onRemoved, operate, partAdded, partRemoved, recalcLight, remPart, remPart_impl, replaceable, saveAdditional, setChanged, setLevel, setRemoved, setValid, stepOn, tile, updateLight, useItemOn, useWithoutItem, writeDescMethods 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, getUpdatePacket, hasLevel, isRemoved, isValidBlockState, loadAdditional, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setComponents, setData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, 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, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onDataPacket, onLoad, requestModelDataUpdate
-
Constructor Details
-
TCapabilityTile
public TCapabilityTile(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getCapability
@Nullable public <T,C> T getCapability(net.neoforged.neoforge.capabilities.BlockCapability<T, C> capability, C context) Description copied from class:TileMultipartCalled via our global capability registration.Implemented by
TCapabilityTile- Overrides:
getCapabilityin classTileMultipart- Parameters:
capability- The capability.context- The capability context.- Returns:
- The capability instance.
-