Class BlockEntityMultipartTicking
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
org.cyclops.integrateddynamics.core.blockentity.BlockEntityMultipartTicking
- All Implemented Interfaces:
net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension,org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable,org.cyclops.cyclopscore.persist.IDirtyMarkListener,org.cyclops.cyclopscore.persist.nbt.INBTProvider,PartHelpers.IPartStateHolderCallback
public class BlockEntityMultipartTicking
extends org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
implements PartHelpers.IPartStateHolderCallback
A ticking part entity which is made up of different parts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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
ConstructorsConstructorDescriptionBlockEntityMultipartTicking(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionnet.neoforged.neoforge.model.data.ModelDataorg.cyclops.cyclopscore.datastructure.EnumFacingMap<Boolean> protected voidvoidvoidonDataPacket(net.minecraft.network.Connection net, net.minecraft.world.level.storage.ValueInput valueInput) voidonSet(PartHelpers.PartStateHolder<?, ?> partStateHolder) protected voidvoidpreRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidread(net.minecraft.world.level.storage.ValueInput input) static voidregisterMultipartTickingCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType) static <T> voidregisterPartCapabilityAsBlockCapability(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType, net.neoforged.neoforge.capabilities.BlockCapability<T, net.minecraft.core.Direction> blockCapability, PartCapability<T> partCapability) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidsetForceDisconnected(org.cyclops.cyclopscore.datastructure.EnumFacingMap<Boolean> forceDisconnected) voidprotected net.minecraft.core.DirectiontransformFacingForRotation(net.minecraft.core.Direction facing) voidvoidupdateRedstoneInfo(net.minecraft.core.Direction side, boolean strongPower) Methods inherited from class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
canInteractWith, getRotation, getUpdateBackoff, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, loadAdditional, onDirty, readGeneratedFieldsFromNBT, sendUpdate, setUpdateBackoff, shouldSendUpdate, unsetSendUpdate, writeGeneratedFieldsToNBT, writeToItemStackMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, 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 org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable
reduceUpdateBackoff, sendImmediateUpdateMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onLoad, requestModelDataUpdate
-
Constructor Details
-
BlockEntityMultipartTicking
public BlockEntityMultipartTicking(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
registerMultipartTickingCapabilities
public static void registerMultipartTickingCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType) -
registerPartCapabilityAsBlockCapability
public static <T> void registerPartCapabilityAsBlockCapability(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType, net.neoforged.neoforge.capabilities.BlockCapability<T, net.minecraft.core.Direction> blockCapability, PartCapability<T> partCapability) -
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
read
public void read(net.minecraft.world.level.storage.ValueInput input) - Overrides:
readin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.world.level.storage.ValueInput valueInput) - Specified by:
onDataPacketin interfacenet.neoforged.neoforge.common.extensions.IBlockEntityExtension
-
onUpdateReceived
protected void onUpdateReceived() -
getConnectionState
public net.neoforged.neoforge.model.data.ModelData getConnectionState() -
updateRedstoneInfo
public void updateRedstoneInfo(net.minecraft.core.Direction side, boolean strongPower) -
updateLightInfo
public void updateLightInfo() -
getNetwork
-
onSet
- Specified by:
onSetin interfacePartHelpers.IPartStateHolderCallback
-
getForceDisconnected
- Returns:
- The raw force disconnection data.
-
setForceDisconnected
public void setForceDisconnected(org.cyclops.cyclopscore.datastructure.EnumFacingMap<Boolean> forceDisconnected) -
onChunkUnloaded
public void onChunkUnloaded()- Specified by:
onChunkUnloadedin interfacenet.neoforged.neoforge.common.extensions.IBlockEntityExtension
-
invalidateParts
protected void invalidateParts() -
transformFacingForRotation
protected net.minecraft.core.Direction transformFacingForRotation(net.minecraft.core.Direction facing) - Overrides:
transformFacingForRotationin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
preRemoveSideEffects
public void preRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
preRemoveSideEffectsin classnet.minecraft.world.level.block.entity.BlockEntity
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classnet.minecraft.world.level.block.entity.BlockEntity
-