Class PoweredShaftTileEntity
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.base.GeneratingKineticTileEntity
com.simibubi.create.content.contraptions.components.steam.PoweredShaftTileEntity
- 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
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.level.block.Blockfloatnet.minecraft.core.BlockPosintintFields inherited from class com.simibubi.create.content.contraptions.base.GeneratingKineticTileEntity
reActivateSourceFields 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
ConstructorsConstructorDescriptionPoweredShaftTileEntity(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 TypeMethodDescriptionbooleanaddToEngineTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) booleanaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) this method will be called when looking at a TileEntity that implemented this interfacefloatbooleancanBePoweredBy(net.minecraft.core.BlockPos globalPos) floatintgetRotationAngleOffset(net.minecraft.core.Direction.Axis axis) booleanisPoweredBy(net.minecraft.core.BlockPos globalPos) protected voidread(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidremove(net.minecraft.core.BlockPos sourcePos) voidtick()voidupdate(net.minecraft.core.BlockPos sourcePos, int direction, float efficiency) protected voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.base.GeneratingKineticTileEntity
applyNewSpeed, createNetworkId, notifyStressCapacityChange, removeSource, setSource, updateGeneratedRotationMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addBehaviours, addPropagationLocations, addToTooltip, attachKinetics, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getOrCreateNetwork, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, onSpeedChanged, propagateRotationTo, requestModelDataUpdate, setNetwork, setRemoved, setRemovedNotDueToChunkUnload, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods 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
containedFluidTooltip
-
Field Details
-
enginePos
public net.minecraft.core.BlockPos enginePos -
engineEfficiency
public float engineEfficiency -
movementDirection
public int movementDirection -
initialTicks
public int initialTicks -
capacityKey
public net.minecraft.world.level.block.Block capacityKey
-
-
Constructor Details
-
PoweredShaftTileEntity
public PoweredShaftTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classGeneratingKineticTileEntity
-
update
public void update(net.minecraft.core.BlockPos sourcePos, int direction, float efficiency) -
remove
public void remove(net.minecraft.core.BlockPos sourcePos) -
canBePoweredBy
public boolean canBePoweredBy(net.minecraft.core.BlockPos globalPos) -
isPoweredBy
public boolean isPoweredBy(net.minecraft.core.BlockPos globalPos) -
write
protected void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classKineticTileEntity
-
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 classKineticTileEntity
-
getGeneratedSpeed
public float getGeneratedSpeed()- Overrides:
getGeneratedSpeedin classKineticTileEntity
-
calculateAddedStressCapacity
public float calculateAddedStressCapacity()- Overrides:
calculateAddedStressCapacityin classKineticTileEntity
-
getRotationAngleOffset
public int getRotationAngleOffset(net.minecraft.core.Direction.Axis axis) - Overrides:
getRotationAngleOffsetin classKineticTileEntity
-
addToGoggleTooltip
public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) Description copied from interface:IHaveGoggleInformationthis method will be called when looking at a TileEntity that implemented this interface- Specified by:
addToGoggleTooltipin interfaceIHaveGoggleInformation- Overrides:
addToGoggleTooltipin classGeneratingKineticTileEntity- Returns:
trueif the tooltip creation was successful and should be displayed, orfalseif the overlay should not be displayed
-
addToEngineTooltip
public boolean addToEngineTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
-