Class GantryShaftTileEntity
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.CachedRenderBBTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.relays.advanced.GantryShaftTileEntity
- All Implemented Interfaces:
IHaveGoggleInformation,IHaveHoveringInformation,ISpecialBlockEntityItemRequirement,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>> -
Field Summary
Fields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
lazyTickCounter, lazyTickRateFields 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, spacing -
Constructor Summary
ConstructorsConstructorDescriptionGantryShaftTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfloatbooleanisCustomConnection(KineticTileEntity other, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState otherState) Specify whether this component can propagate speed to the other in any circumstance.protected booleanisNoisy()voidonSpeedChanged(float previousSpeed) floatpropagateRotationTo(KineticTileEntity target, net.minecraft.world.level.block.state.BlockState stateFrom, net.minecraft.world.level.block.state.BlockState stateTo, net.minecraft.core.BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs) Specify ratio of transferred rotation from this kinetic component to a specific other.Methods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addBehaviours, addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRotationAngleOffset, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, read, removeSource, requestModelDataUpdate, setNetwork, setRemoved, setRemovedNotDueToChunkUnload, setSource, setSpeed, switchToBlockState, tick, tickAudio, updateFromNetwork, warnOfMovement, writeMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.tileEntity.CachedRenderBBTileEntity
createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, 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 net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltipMethods inherited from interface com.simibubi.create.content.schematics.ISpecialBlockEntityItemRequirement
getRequiredItems
-
Constructor Details
-
GantryShaftTileEntity
public GantryShaftTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
checkAttachedCarriageBlocks
public void checkAttachedCarriageBlocks() -
onSpeedChanged
public void onSpeedChanged(float previousSpeed) - Overrides:
onSpeedChangedin classKineticTileEntity
-
propagateRotationTo
public float propagateRotationTo(KineticTileEntity target, net.minecraft.world.level.block.state.BlockState stateFrom, net.minecraft.world.level.block.state.BlockState stateTo, net.minecraft.core.BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs) Description copied from class:KineticTileEntitySpecify ratio of transferred rotation from this kinetic component to a specific other.- Overrides:
propagateRotationToin classKineticTileEntity- Parameters:
target- other Kinetic TE to transfer tostateFrom- this TE's blockstatestateTo- other TE's blockstatediff- difference in position (to.pos - from.pos)connectedViaAxes- whether these kinetic blocks are connected via mutual IRotate.hasShaftTowards()connectedViaCogs- whether these kinetic blocks are connected via mutual IRotate.hasIntegratedCogwheel()- Returns:
- factor of rotation speed from this TE to other. 0 if no rotation is transferred, or the standard rules apply (integrated shafts/cogs)
-
isCustomConnection
public boolean isCustomConnection(KineticTileEntity other, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState otherState) Description copied from class:KineticTileEntitySpecify whether this component can propagate speed to the other in any circumstance. Shaft and cogwheel connections are already handled by internal logic. Does not have to be specified on both ends, it is assumed that this relation is symmetrical.- Overrides:
isCustomConnectionin classKineticTileEntity- Returns:
- true if this and the other component should check their propagation factor and are not already connected via integrated cogs or shafts
-
canAssembleOn
public boolean canAssembleOn() -
getPinionMovementSpeed
public float getPinionMovementSpeed() -
isNoisy
protected boolean isNoisy()- Overrides:
isNoisyin classKineticTileEntity
-