Class MovementBlockEntity
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.simibubi.create.foundation.blockEntity.SmartBlockEntity
petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
petrolpark.mc.petrolsparts.content.kinetics.movement.MovementBlockEntity
- All Implemented Interfaces:
com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon,com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation,com.simibubi.create.api.equipment.goggles.IHaveHoveringInformation,com.simibubi.create.api.schematic.nbt.PartialSafeNBT,com.simibubi.create.api.schematic.requirement.SpecialBlockEntityItemRequirement,com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable,com.simibubi.create.foundation.utility.IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class MovementBlockEntity
extends petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
implements com.simibubi.create.api.equipment.goggles.IHaveHoveringInformation, com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation, com.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart, petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.GeneratingCompositeKineticBlockEntityPartNested 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
FieldsModifier and TypeFieldDescriptionprotected petrolpark.mc.library.compat.create.core.world.block.entity.behaviour.FlagPoleBehaviourprotected final List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> protected floatprotected MovementWeightDataprotected net.minecraft.world.item.ItemStackFields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
lazyTickCounter, lazyTickRateFields 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
ConstructorsConstructorDescriptionMovementBlockEntity(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 TypeMethodDescriptionvoidaddBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) booleanaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) booleanaddToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) protected voidapplyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput) protected voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) protected net.minecraft.world.phys.AABBnet.minecraft.network.chat.MutableComponentformat(int value) floatintfloatintintList<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> getParts()booleanprotected voidread(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) voidsetWeightStack(net.minecraft.world.item.ItemStack newWeightStack) booleanvoidtick()voidupdate()protected voidwrite(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
addMultiParts, destroy, initialize, invalidate, lazyTick, onChunkUnloaded, preventSpeedUpdates, queueRotationIndicators, remove, removeExistingKineticInformation, setBlockState, setLevel, streamAnyMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, isChunkUnloaded, isVirtual, loadAdditional, markVirtual, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, setData, 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, onLoad, requestModelDataUpdateMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon
getIconMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation
containedFluidTooltip
-
Field Details
-
windingPart
-
generatingPart
-
parts
protected final List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> parts -
rotationsCharge
protected float rotationsCharge -
weightStack
protected net.minecraft.world.item.ItemStack weightStack -
weightData
-
flagPole
protected petrolpark.mc.library.compat.create.core.world.block.entity.behaviour.FlagPoleBehaviour flagPole
-
-
Constructor Details
-
MovementBlockEntity
public MovementBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addBehaviours
public void addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) - Specified by:
addBehavioursin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
getMaxRotationsCharge
public float getMaxRotationsCharge() -
getBaseRotationSpeed
public float getBaseRotationSpeed() -
setWeightStack
public void setWeightStack(net.minecraft.world.item.ItemStack newWeightStack) -
isFullyCharged
public boolean isFullyCharged() -
shouldGenerate
public boolean shouldGenerate() -
getParts
public List<petrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity.CompositeKineticBlockEntityPart> getParts()- Specified by:
getPartsin classpetrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
-
tick
public void tick()- Overrides:
tickin classpetrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
-
update
public void update() -
read
protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classpetrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
-
write
protected void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classpetrolpark.mc.library.compat.create.core.world.block.composite.CompositeKineticBlockEntity
-
createRenderBoundingBox
protected net.minecraft.world.phys.AABB createRenderBoundingBox()- Overrides:
createRenderBoundingBoxin classcom.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
-
applyImplicitComponents
protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
collectImplicitComponents
protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
addToTooltip
public boolean addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) - Specified by:
addToTooltipin interfacecom.simibubi.create.api.equipment.goggles.IHaveHoveringInformation
-
addToGoggleTooltip
public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) - Specified by:
addToGoggleTooltipin interfacecom.simibubi.create.api.equipment.goggles.IHaveGoggleInformation
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValuein interfacecom.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
-
getMinValue
public int getMinValue()- Specified by:
getMinValuein interfacecom.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
-
getCurrentValue
public int getCurrentValue()- Specified by:
getCurrentValuein interfacecom.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
-
format
public net.minecraft.network.chat.MutableComponent format(int value) - Specified by:
formatin interfacecom.simibubi.create.content.redstone.thresholdSwitch.ThresholdSwitchObservable
-