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

    Fields
    Modifier and Type
    Field
    Description
    int
     
    Current rocket destination
    boolean
     
    boolean
     
    boolean
     
    float
     
    static final int
     
    boolean
     
    Origin dimension, set during takeoff to create a return ticket upon landing
    int
     
    float
     

    Fields inherited from class com.simibubi.create.content.contraptions.TranslatingContraption

    cachedColliderDirection, cachedColliders

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    float
     
    calculateRequiredFuel(Planet planetFrom, PlanetDimension dimensionFrom, Planet planetTo, PlanetDimension dimensionTo)
     
    float
     
    int
     
    boolean
    canBeStabilized(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 void
    consumeFuel(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)
     
    float
     
    com.simibubi.create.api.contraption.ContraptionType
     
    protected boolean
    isAnchoringBlockAt(net.minecraft.core.BlockPos pos)
     
    boolean
    isClearForLaunch(net.minecraft.world.level.Level origin, net.minecraft.world.level.Level destination)
     
    void
    readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData)
     
    net.minecraft.nbt.CompoundTag
    writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
     

    Methods inherited from class com.simibubi.create.content.contraptions.TranslatingContraption

    createColliders, removeBlocksFromWorld

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INFINITE_THRUSTERS

      public static final int INFINITE_THRUSTERS
      See Also:
    • hasControls

      public boolean hasControls
    • infiniteFuel

      public boolean infiniteFuel
    • hasAutoLander

      public boolean hasAutoLander
    • hasInterplanetaryNavigator

      public boolean hasInterplanetaryNavigator
    • thrusterCount

      public int thrusterCount
    • computerCount

      public int computerCount
    • heatShielding

      public float heatShielding
    • weight

      public float weight
    • destination

      public RocketDestination destination
      Current rocket destination
    • origin

      public RocketDestination 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:
      assemble in class com.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:
      capture in class com.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:
      getOrCreateColliders in class com.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:
      canBeStabilized in class com.simibubi.create.content.contraptions.TranslatingContraption
    • getType

      public com.simibubi.create.api.contraption.ContraptionType getType()
      Specified by:
      getType in class com.simibubi.create.content.contraptions.Contraption
    • isAnchoringBlockAt

      protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos)
      Overrides:
      isAnchoringBlockAt in class com.simibubi.create.content.contraptions.Contraption
    • writeNBT

      public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeNBT in class com.simibubi.create.content.contraptions.Contraption
    • readNBT

      public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData)
      Overrides:
      readNBT in class com.simibubi.create.content.contraptions.Contraption
    • consumeFuel

      public static void consumeFuel(net.neoforged.neoforge.fluids.capability.IFluidHandler fluids, float energy)