Class CommonCircuitBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
in.northwestw.shortcircuit.registries.blockentities.common.CommonCircuitBlockEntity
- All Implemented Interfaces:
net.minecraft.util.debug.DebugValueSource,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
- Direct Known Subclasses:
CircuitBlockEntity,IntegratedCircuitBlockEntity
public class CommonCircuitBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T> -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionCommonCircuitBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> booleanapplyImplicitComponent(net.minecraft.core.component.DataComponentType<T> component, T value) protected <T> booleanapplyImplicitComponentIfPresent(net.minecraft.core.component.DataComponentGetter componentGetter, net.minecraft.core.component.DataComponentType<T> component) protected voidapplyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) protected voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> net.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider registries) getUuid()booleanisHidden()booleanisValid()protected voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) protected booleanprotected voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidsetHidden(boolean hidden) voidvoidprotected voidsideUpdated(RelativeDirection direction) voidtick()voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, 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, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
uuid
-
name
-
-
Constructor Details
-
CommonCircuitBlockEntity
public CommonCircuitBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
loadAdditional
protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
@Nullable public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
applyImplicitComponents
protected void applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
applyImplicitComponent
protected <T> boolean applyImplicitComponent(net.minecraft.core.component.DataComponentType<T> component, T value) -
applyImplicitComponentIfPresent
protected <T> boolean applyImplicitComponentIfPresent(net.minecraft.core.component.DataComponentGetter componentGetter, net.minecraft.core.component.DataComponentType<T> component) -
collectImplicitComponents
protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
isValid
public boolean isValid() -
getUuid
-
setUuid
-
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
setName
-
tick
public void tick() -
updateInputs
public void updateInputs() -
maxUpdateReached
protected boolean maxUpdateReached() -
sideUpdated
-