Class RocketContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.TranslatingContraption
com.lightning.northstar.contraption.rocket.RocketContraption
public class RocketContraption
extends com.simibubi.create.content.contraptions.TranslatingContraption
-
Field Summary
FieldsModifier and TypeFieldDescriptionintCurrent rocket destinationbooleanbooleanbooleanfloatstatic final intbooleanOrigin dimension, set during takeoff to create a return ticket upon landingintfloatFields inherited from class com.simibubi.create.content.contraptions.TranslatingContraption
cachedColliderDirection, cachedCollidersFields inherited from class com.simibubi.create.content.contraptions.Contraption
actors, anchor, blocks, bounds, capturedMultiblocks, collisionLevel, disabledActors, disassembled, entity, hasUniversalCreativeCrate, interactors, isLegacy, seatMapping, seats, simplifiedEntityColliders, stabilizedSubContraptions, stalled, storage, superglue, updateTags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) floatcalculateRequiredFuel(Planet planetFrom, PlanetDimension dimensionFrom, Planet planetTo, PlanetDimension dimensionTo) floatcalculateRequiredHeatShielding(PlanetDimension dimensionFrom, PlanetDimension dimensionTo) intcalculateRequiredThrusters(float gravity) booleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo, net.minecraft.world.level.block.entity.BlockEntity> capture(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static voidconsumeFuel(net.neoforged.neoforge.fluids.capability.IFluidHandler fluids, float energy) Set<net.minecraft.core.BlockPos> getOrCreateColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) floatcom.simibubi.create.api.contraption.ContraptionTypegetType()protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) booleanisClearForLaunch(net.minecraft.world.level.Level origin, net.minecraft.world.level.Level destination) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.TranslatingContraption
createColliders, removeBlocksFromWorldMethods inherited from class com.simibubi.create.content.contraptions.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, captureMultiblock, containsBlockBreakers, createClientContraption, customBlockPlacement, customBlockRemoval, disableActorOnStart, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, getSimplifiedEntityColliders, getStorage, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeStorage
-
Field Details
-
INFINITE_THRUSTERS
public static final int INFINITE_THRUSTERS- See Also:
-
hasControls
public boolean hasControls -
infiniteFuel
public boolean infiniteFuel -
hasAutoLander
public boolean hasAutoLander -
thrusterCount
public int thrusterCount -
computerCount
public int computerCount -
heatShielding
public float heatShielding -
weight
public float weight -
destination
Current rocket destination -
origin
Origin dimension, set during takeoff to create a return ticket upon landing
-
-
Constructor Details
-
RocketContraption
public RocketContraption()
-
-
Method Details
-
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws com.simibubi.create.content.contraptions.AssemblyException - Specified by:
assemblein classcom.simibubi.create.content.contraptions.Contraption- Throws:
com.simibubi.create.content.contraptions.AssemblyException
-
capture
protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,net.minecraft.world.level.block.entity.BlockEntity> capture(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Overrides:
capturein classcom.simibubi.create.content.contraptions.Contraption
-
getOrCreateColliders
public Set<net.minecraft.core.BlockPos> getOrCreateColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) - Overrides:
getOrCreateCollidersin classcom.simibubi.create.content.contraptions.TranslatingContraption
-
calculateAvailableFuel
public float calculateAvailableFuel() -
getTargetingComputerReduction
public float getTargetingComputerReduction() -
calculateRequiredFuel
public FuelCost calculateRequiredFuel(Planet planetFrom, PlanetDimension dimensionFrom, Planet planetTo, PlanetDimension dimensionTo) -
calculateRequiredHeatShielding
public float calculateRequiredHeatShielding(PlanetDimension dimensionFrom, PlanetDimension dimensionTo) -
calculateRequiredThrusters
public int calculateRequiredThrusters(float gravity) -
isClearForLaunch
public boolean isClearForLaunch(net.minecraft.world.level.Level origin, net.minecraft.world.level.Level destination) -
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Overrides:
canBeStabilizedin classcom.simibubi.create.content.contraptions.TranslatingContraption
-
getType
public com.simibubi.create.api.contraption.ContraptionType getType()- Specified by:
getTypein classcom.simibubi.create.content.contraptions.Contraption
-
isAnchoringBlockAt
protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos) - Overrides:
isAnchoringBlockAtin classcom.simibubi.create.content.contraptions.Contraption
-
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) - Overrides:
writeNBTin classcom.simibubi.create.content.contraptions.Contraption
-
readNBT
public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) - Overrides:
readNBTin classcom.simibubi.create.content.contraptions.Contraption
-
consumeFuel
public static void consumeFuel(net.neoforged.neoforge.fluids.capability.IFluidHandler fluids, float energy)
-