Class RocketStationBlockEntity
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.lightning.northstar.block.tech.rocket_station.RocketStationBlockEntity
- All Implemented Interfaces:
com.simibubi.create.api.schematic.nbt.PartialSafeNBT,com.simibubi.create.api.schematic.requirement.SpecialBlockEntityItemRequirement,com.simibubi.create.content.contraptions.IControlContraption,com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions,com.simibubi.create.foundation.utility.IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.client.extensions.IMenuProviderExtension,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class RocketStationBlockEntity
extends com.simibubi.create.foundation.blockEntity.SmartBlockEntity
implements com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions, com.simibubi.create.content.contraptions.IControlContraption, net.minecraft.world.MenuProvider
-
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.content.contraptions.IControlContraption
com.simibubi.create.content.contraptions.IControlContraption.MovementMode, com.simibubi.create.content.contraptions.IControlContraption.RotationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic net.createmod.catnip.data.WorldAttached<Map<net.minecraft.core.BlockPos, net.minecraft.world.level.levelgen.structure.BoundingBox>> protected floatfinal net.minecraft.world.Containercom.simibubi.create.content.trains.track.TrackTargetingBehaviour<com.simibubi.create.content.trains.station.GlobalStation> protected intprotected booleanintintprotected net.neoforged.neoforge.items.ItemStackHandlerprotected net.neoforged.neoforge.items.IItemHandlerModifiableprotected com.simibubi.create.content.contraptions.AssemblyExceptioncom.simibubi.create.content.contraptions.AbstractContraptionEntityprotected com.simibubi.create.foundation.blockEntity.behaviour.scrollValue.ScrollOptionBehaviour<com.simibubi.create.content.contraptions.IControlContraption.MovementMode> booleanfloatnet.minecraft.world.entity.player.Playerbooleanprotected doublenet.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> protected booleanFields 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
ConstructorsConstructorDescriptionRocketStationBlockEntity(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 TypeMethodDescriptionvoidaddBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) voidattach(com.simibubi.create.content.contraptions.ControlledContraptionEntity contraption) net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) voiddestroy()intvoidvoidintfuelCalc()intnet.minecraft.core.Directionnet.minecraft.core.BlockPosnet.minecraft.network.chat.Componentcom.simibubi.create.content.contraptions.AssemblyExceptionbooleanbooleanisAttachedTo(com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption) booleanisValid()voidonStall()voidqueueAssembly(net.minecraft.world.entity.player.Player player) protected voidread(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) voidtick()protected voidwrite(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, invalidate, isChunkUnloaded, isVirtual, lazyTick, loadAdditional, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
createRenderBoundingBox, 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, onLoad, requestModelDataUpdateMethods inherited from interface com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions
addExceptionToTooltipMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
-
Field Details
-
owner
public net.minecraft.world.entity.player.Player owner -
lastException
protected com.simibubi.create.content.contraptions.AssemblyException lastException -
edgePoint
public com.simibubi.create.content.trains.track.TrackTargetingBehaviour<com.simibubi.create.content.trains.station.GlobalStation> edgePoint -
inventory
protected net.neoforged.neoforge.items.ItemStackHandler inventory -
itemCapability
protected net.neoforged.neoforge.items.IItemHandlerModifiable itemCapability -
name
-
failedCarriageIndex
protected int failedCarriageIndex -
offset
public float offset -
fuelCost
public int fuelCost -
fuelReturnCost
public int fuelReturnCost -
running
public boolean running -
needsContraption
public boolean needsContraption -
movedContraption
public com.simibubi.create.content.contraptions.AbstractContraptionEntity movedContraption -
forceMove
protected boolean forceMove -
movementMode
protected com.simibubi.create.foundation.blockEntity.behaviour.scrollValue.ScrollOptionBehaviour<com.simibubi.create.content.contraptions.IControlContraption.MovementMode> movementMode -
waitingForSpeedChange
protected boolean waitingForSpeedChange -
sequencedOffsetLimit
protected double sequencedOffsetLimit -
clientOffsetDiff
protected float clientOffsetDiff -
target
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> target -
container
public final net.minecraft.world.Container container -
assemblyAreas
public static net.createmod.catnip.data.WorldAttached<Map<net.minecraft.core.BlockPos,net.minecraft.world.level.levelgen.structure.BoundingBox>> assemblyAreas
-
-
Constructor Details
-
RocketStationBlockEntity
public RocketStationBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addBehaviours
public void addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) - Specified by:
addBehavioursin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
destroy
public void destroy()- Overrides:
destroyin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
queueAssembly
public void queueAssembly(net.minecraft.world.entity.player.Player player) -
enterAssembly
public void enterAssembly() -
exitAssembly
public void exitAssembly() -
tick
public void tick()- Overrides:
tickin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
isAssembling
public boolean isAssembling() -
fuelCalc
public int fuelCalc() -
fuelReturnCalc
public int fuelReturnCalc() -
engineCalc
public int engineCalc() -
write
protected void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
getLastAssemblyException
public com.simibubi.create.content.contraptions.AssemblyException getLastAssemblyException()- Specified by:
getLastAssemblyExceptionin interfacecom.simibubi.create.content.contraptions.IDisplayAssemblyExceptions
-
getAssemblyDirection
public net.minecraft.core.Direction getAssemblyDirection() -
isValid
public boolean isValid()- Specified by:
isValidin interfacecom.simibubi.create.content.contraptions.IControlContraption
-
attach
public void attach(com.simibubi.create.content.contraptions.ControlledContraptionEntity contraption) - Specified by:
attachin interfacecom.simibubi.create.content.contraptions.IControlContraption
-
isAttachedTo
public boolean isAttachedTo(com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption) - Specified by:
isAttachedToin interfacecom.simibubi.create.content.contraptions.IControlContraption
-
getBlockPosition
public net.minecraft.core.BlockPos getBlockPosition()- Specified by:
getBlockPositionin interfacecom.simibubi.create.content.contraptions.IControlContraption
-
onStall
public void onStall()- Specified by:
onStallin interfacecom.simibubi.create.content.contraptions.IControlContraption
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-