Class PulleyTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.components.structureMovement.piston.LinearActuatorTileEntity
com.simibubi.create.content.contraptions.components.structureMovement.pulley.PulleyTileEntity
- All Implemented Interfaces:
IControlContraption,IDisplayAssemblyExceptions,IHaveGoggleInformation,IHaveHoveringInformation,IInteractionChecker,IPartialSafeNBT,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface com.simibubi.create.content.contraptions.components.structureMovement.IControlContraption
IControlContraption.MovementMode, IControlContraption.RotationModeNested classes/interfaces inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
IHaveGoggleInformation.Format -
Field Summary
FieldsFields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.piston.LinearActuatorTileEntity
assembleNextTick, clientOffsetDiff, forceMove, lastException, movedContraption, movementMode, needsContraption, offset, running, waitingForSpeedChangeFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABBFields inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
componentSpacing, numberFormat, spacing -
Constructor Summary
ConstructorsConstructorDescriptionPulleyTileEntity(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 TypeMethodDescriptionvoidanimateOffset(float forcedOffset) protected voidassemble()voidprotected intprotected intfloatgetInterpolatedOffset(float partialTicks) protected ValueBoxTransformnet.minecraft.world.phys.AABBprotected voidread(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidtick()protected net.minecraft.world.phys.Vec3toMotionVector(float speed) protected net.minecraft.world.phys.Vec3toPosition(float offset) protected voidvoidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.piston.LinearActuatorTileEntity
addBehaviours, attach, collided, getBlockPosition, getGridOffset, getLastAssemblyException, getMotionVector, getMovementSpeed, isAttachedTo, isValid, lazyTick, moveAndCollideContraption, onLengthBroken, onSpeedChanged, onStall, resetContraptionToOffset, setRemoved, setRemovedNotDueToChunkUnload, tryDisassembleMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRenderBoundingBox, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, propagateRotationTo, removeSource, requestModelDataUpdate, setNetwork, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, isFluidHandlerCap, isItemHandlerCap, isVirtual, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, save, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface com.simibubi.create.content.contraptions.components.structureMovement.IDisplayAssemblyExceptions
addExceptionToTooltipMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltip
-
Field Details
-
initialOffset
protected int initialOffset
-
-
Constructor Details
-
PulleyTileEntity
public PulleyTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
makeRenderBoundingBox
public net.minecraft.world.phys.AABB makeRenderBoundingBox()- Overrides:
makeRenderBoundingBoxin classKineticTileEntity
-
tick
public void tick()- Overrides:
tickin classLinearActuatorTileEntity
-
assemble
- Specified by:
assemblein classLinearActuatorTileEntity- Throws:
AssemblyException
-
disassemble
public void disassemble()- Specified by:
disassemblein classLinearActuatorTileEntity
-
toPosition
protected net.minecraft.world.phys.Vec3 toPosition(float offset) - Specified by:
toPositionin classLinearActuatorTileEntity
-
visitNewPosition
protected void visitNewPosition()- Overrides:
visitNewPositionin classLinearActuatorTileEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
readin classLinearActuatorTileEntity
-
write
public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classLinearActuatorTileEntity
-
getExtensionRange
protected int getExtensionRange()- Specified by:
getExtensionRangein classLinearActuatorTileEntity
-
getInitialOffset
protected int getInitialOffset()- Specified by:
getInitialOffsetin classLinearActuatorTileEntity
-
toMotionVector
protected net.minecraft.world.phys.Vec3 toMotionVector(float speed) - Specified by:
toMotionVectorin classLinearActuatorTileEntity
-
getMovementModeSlot
- Specified by:
getMovementModeSlotin classLinearActuatorTileEntity
-
getInterpolatedOffset
public float getInterpolatedOffset(float partialTicks) - Overrides:
getInterpolatedOffsetin classLinearActuatorTileEntity
-
animateOffset
public void animateOffset(float forcedOffset)
-