Class EncasedFanTileEntity
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.base.GeneratingKineticTileEntity
com.simibubi.create.content.contraptions.components.fan.EncasedFanTileEntity
- All Implemented Interfaces:
com.jozufozu.flywheel.api.FlywheelRendered,IAirCurrentSource,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.goggles.IHaveGoggleInformation
IHaveGoggleInformation.Format -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected booleanprotected booleanprotected booleanFields inherited from class com.simibubi.create.content.contraptions.base.GeneratingKineticTileEntity
reActivateSourceFields 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
ConstructorsConstructorDescriptionEncasedFanTileEntity(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 TypeMethodDescriptionbooleanvoidfloatfloatnet.minecraft.core.BlockPosnet.minecraft.world.level.Levelnet.minecraft.core.Directionnet.minecraft.core.DirectionfloatbooleanvoidonSpeedChanged(float prevSpeed) voidprotected voidread(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidtick()voidvoidvoidwrite(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
addToGoggleTooltip, applyNewSpeed, createNetworkId, notifyStressCapacityChange, removeSource, setSource, updateGeneratedRotationMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addBehaviours, addPropagationLocations, addToTooltip, attachKinetics, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getOrCreateNetwork, getRenderBoundingBox, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, makeRenderBoundingBox, needsSpeedUpdate, propagateRotationTo, requestModelDataUpdate, setNetwork, setRemoved, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, 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, onChunkUnloaded, 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 com.jozufozu.flywheel.api.FlywheelRendered
shouldRenderNormallyMethods inherited from interface com.simibubi.create.content.contraptions.components.fan.IAirCurrentSource
getMaxDistance, getSpeedMethods 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
-
airCurrent
-
airCurrentUpdateCooldown
protected int airCurrentUpdateCooldown -
entitySearchCooldown
protected int entitySearchCooldown -
isGenerator
protected boolean isGenerator -
updateAirFlow
protected boolean updateAirFlow -
updateGenerator
protected boolean updateGenerator
-
-
Constructor Details
-
EncasedFanTileEntity
public EncasedFanTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
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
-
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 classKineticTileEntity
-
calculateAddedStressCapacity
public float calculateAddedStressCapacity()- Overrides:
calculateAddedStressCapacityin classKineticTileEntity
-
calculateStressApplied
public float calculateStressApplied()- Overrides:
calculateStressAppliedin classKineticTileEntity
-
getGeneratedSpeed
public float getGeneratedSpeed()- Overrides:
getGeneratedSpeedin classKineticTileEntity
-
queueGeneratorUpdate
public void queueGeneratorUpdate() -
updateGenerator
public void updateGenerator() -
blockBelowIsHot
public boolean blockBelowIsHot() -
getAirCurrent
- Specified by:
getAirCurrentin interfaceIAirCurrentSource
-
getAirCurrentWorld
@Nullable public net.minecraft.world.level.Level getAirCurrentWorld()- Specified by:
getAirCurrentWorldin interfaceIAirCurrentSource
-
getAirCurrentPos
public net.minecraft.core.BlockPos getAirCurrentPos()- Specified by:
getAirCurrentPosin interfaceIAirCurrentSource
-
getAirflowOriginSide
public net.minecraft.core.Direction getAirflowOriginSide()- Specified by:
getAirflowOriginSidein interfaceIAirCurrentSource
-
getAirFlowDirection
public net.minecraft.core.Direction getAirFlowDirection()- Specified by:
getAirFlowDirectionin interfaceIAirCurrentSource
-
isSourceRemoved
public boolean isSourceRemoved()- Specified by:
isSourceRemovedin interfaceIAirCurrentSource
-
onSpeedChanged
public void onSpeedChanged(float prevSpeed) - Overrides:
onSpeedChangedin classKineticTileEntity
-
updateChute
public void updateChute() -
blockInFrontChanged
public void blockInFrontChanged() -
tick
public void tick()- Overrides:
tickin classGeneratingKineticTileEntity
-