Class LargeFanBlockEntity
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
com.simibubi.create.content.kinetics.base.KineticBlockEntity
com.lightning.northstar.block.tech.large_fan.LargeFanBlockEntity
- All Implemented Interfaces:
ReceivingKineticBlockEntity,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.foundation.blockEntity.IMultiBlockEntityContainer,com.simibubi.create.foundation.utility.IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class LargeFanBlockEntity
extends com.simibubi.create.content.kinetics.base.KineticBlockEntity
implements com.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer, ReceivingKineticBlockEntity
-
Nested Class Summary
Nested 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.AsFieldNested classes/interfaces inherited from interface com.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
com.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer.Fluid, com.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer.Inventory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatVisual rotation progress, used by the rendererprotected intInstalled blade countprotected net.minecraft.core.BlockPosprotected net.minecraft.core.BlockPosprotected net.createmod.catnip.animation.LerpedFloatEffective speed in RPMprotected booleanprotected intprotected net.minecraft.core.BlockPosstatic final intMaximum amount of blades that can be installedstatic final intMinimum amount of blades that must be installed for the fan to spinprotected booleanprotected booleanprotected intFields inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntity
capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, sequenceContext, source, speed, stress, updateSpeed, wasMovedFields 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
ConstructorsConstructorDescriptionLargeFanBlockEntity(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 TypeMethodDescriptionbooleanaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) protected net.minecraft.world.phys.AABBvoiddestroy()net.minecraft.core.Direction.AxisgetAxis()net.minecraft.core.BlockPosintintnet.minecraft.core.BlockPosnet.minecraft.core.Direction.AxisintgetMaxLength(net.minecraft.core.Direction.Axis longAxis, int width) intintintintintgetWidth()booleanvoidvoidonNeighborChange(net.minecraft.core.BlockPos neighbor, boolean manual) voidfloatpropagateRotationFrom(com.simibubi.create.content.kinetics.base.KineticBlockEntity 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) floatpropagateRotationTo(com.simibubi.create.content.kinetics.base.KineticBlockEntity 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) protected voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) voidremoveController(boolean keepContents) voidsetController(net.minecraft.core.BlockPos pos) voidsetHeight(int height) voidsetWidth(int width) voidtick()protected voidprotected voidwrite(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntity
addBehaviours, addPropagationLocations, addStressImpactStats, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, copySequenceContextFrom, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRotationAngleOffset, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, makeComputerKineticsChangeEvent, needsSpeedUpdate, onSpeedChanged, remove, removeSource, requestModelDataUpdate, setNetwork, setSource, setSpeed, switchToBlockState, syncSequenceContext, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, invalidate, isChunkUnloaded, isVirtual, lazyTick, loadAdditional, markVirtual, onChunkUnloaded, 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, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, 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, onLoadMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon
getIconMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation
containedFluidTooltipMethods inherited from interface com.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
getExtraData, getMainAxisOf, modifyExtraData, setExtraData
-
Field Details
-
MINIMUM_BLADES
public static final int MINIMUM_BLADESMinimum amount of blades that must be installed for the fan to spin- See Also:
-
MAXIMUM_BLADES
public static final int MAXIMUM_BLADESMaximum amount of blades that can be installed- See Also:
-
controllerPos
protected net.minecraft.core.BlockPos controllerPos -
lastKnownPos
protected net.minecraft.core.BlockPos lastKnownPos -
updateConnectivity
protected boolean updateConnectivity -
width
protected int width -
height
protected int height -
updateNeighbors
protected boolean updateNeighbors -
chain
protected net.minecraft.core.BlockPos chain -
flipChain
protected boolean flipChain -
blades
protected int bladesInstalled blade count -
effectiveSpeed
protected net.createmod.catnip.animation.LerpedFloat effectiveSpeedEffective speed in RPM -
angle
protected float angleVisual rotation progress, used by the renderer
-
-
Constructor Details
-
LargeFanBlockEntity
public LargeFanBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
destroy
public void destroy()- Overrides:
destroyin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
tick
public void tick()- Overrides:
tickin classcom.simibubi.create.content.kinetics.base.KineticBlockEntity
-
createRenderBoundingBox
protected net.minecraft.world.phys.AABB createRenderBoundingBox()- Overrides:
createRenderBoundingBoxin classcom.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
-
onNeighborChange
public void onNeighborChange(net.minecraft.core.BlockPos neighbor, boolean manual) -
propagateRotationFrom
public float propagateRotationFrom(com.simibubi.create.content.kinetics.base.KineticBlockEntity 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) - Specified by:
propagateRotationFromin interfaceReceivingKineticBlockEntity- See Also:
-
propagateRotationTo
public float propagateRotationTo(com.simibubi.create.content.kinetics.base.KineticBlockEntity 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) - Overrides:
propagateRotationToin classcom.simibubi.create.content.kinetics.base.KineticBlockEntity
-
getExtraSealedVolume
public int getExtraSealedVolume() -
addToGoggleTooltip
public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) - Specified by:
addToGoggleTooltipin interfacecom.simibubi.create.api.equipment.goggles.IHaveGoggleInformation- Overrides:
addToGoggleTooltipin classcom.simibubi.create.content.kinetics.base.KineticBlockEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classcom.simibubi.create.content.kinetics.base.KineticBlockEntity
-
write
protected void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classcom.simibubi.create.content.kinetics.base.KineticBlockEntity
-
updateConnectivity
protected void updateConnectivity() -
getController
public net.minecraft.core.BlockPos getController()- Specified by:
getControllerin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getControllerBE
- Specified by:
getControllerBEin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
isController
public boolean isController()- Specified by:
isControllerin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
setController
public void setController(net.minecraft.core.BlockPos pos) - Specified by:
setControllerin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
removeController
public void removeController(boolean keepContents) - Specified by:
removeControllerin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getLastKnownPos
public net.minecraft.core.BlockPos getLastKnownPos()- Specified by:
getLastKnownPosin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
preventConnectivityUpdate
public void preventConnectivityUpdate()- Specified by:
preventConnectivityUpdatein interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
notifyMultiUpdated
public void notifyMultiUpdated()- Specified by:
notifyMultiUpdatedin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getMainConnectionAxis
public net.minecraft.core.Direction.Axis getMainConnectionAxis()- Specified by:
getMainConnectionAxisin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getMaxLength
public int getMaxLength(net.minecraft.core.Direction.Axis longAxis, int width) - Specified by:
getMaxLengthin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getMaxWidth
public int getMaxWidth()- Specified by:
getMaxWidthin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
setHeight
public void setHeight(int height) - Specified by:
setHeightin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getWidth
public int getWidth()- Specified by:
getWidthin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
setWidth
public void setWidth(int width) - Specified by:
setWidthin interfacecom.simibubi.create.foundation.blockEntity.IMultiBlockEntityContainer
-
getAxis
public net.minecraft.core.Direction.Axis getAxis() -
getVolumeX
public int getVolumeX() -
getVolumeY
public int getVolumeY() -
getVolumeZ
public int getVolumeZ()
-