Class RocketStationBlockEntity

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.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.content.contraptions.IControlContraption, com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions, com.simibubi.create.content.schematics.requirement.ISpecialBlockEntityItemRequirement, com.simibubi.create.foundation.utility.IInteractionChecker, com.simibubi.create.foundation.utility.IPartialSafeNBT, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, 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>

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.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.IControlContraption

    com.simibubi.create.content.contraptions.IControlContraption.MovementMode, com.simibubi.create.content.contraptions.IControlContraption.RotationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static com.simibubi.create.foundation.utility.WorldAttached<Map<net.minecraft.core.BlockPos,net.minecraft.world.level.levelgen.structure.BoundingBox>>
     
    protected float
     
    final net.minecraft.world.Container
     
    com.simibubi.create.content.trains.track.TrackTargetingBehaviour<com.simibubi.create.content.trains.station.GlobalStation>
     
    protected int
     
    protected boolean
     
    int
     
    int
     
    protected net.minecraftforge.items.ItemStackHandler
     
    protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandlerModifiable>
     
    protected com.simibubi.create.content.contraptions.AssemblyException
     
    com.simibubi.create.content.contraptions.AbstractContraptionEntity
     
    protected com.simibubi.create.foundation.blockEntity.behaviour.scrollValue.ScrollOptionBehaviour<com.simibubi.create.content.contraptions.IControlContraption.MovementMode>
     
     
    boolean
     
    float
     
    net.minecraft.world.entity.player.Player
     
    boolean
     
    protected double
     
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
     
    protected boolean
     

    Fields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity

    lazyTickCounter, lazyTickRate

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    RocketStationBlockEntity(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 Type
    Method
    Description
    void
    addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours)
     
    void
    attach(com.simibubi.create.content.contraptions.ControlledContraptionEntity contraption)
     
    net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player)
     
    void
     
    int
     
    void
     
    void
     
    int
     
    int
     
    net.minecraft.core.Direction
     
    net.minecraft.core.BlockPos
     
    net.minecraft.network.chat.Component
     
    com.simibubi.create.content.contraptions.AssemblyException
     
    boolean
     
    boolean
    isAttachedTo(com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption)
     
    boolean
     
    void
     
    void
    queueAssembly(net.minecraft.world.entity.player.Player player)
     
    protected void
    read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
     
    void
     
    protected void
    write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
     
    void
    writeSafe(net.minecraft.nbt.CompoundTag compound)
     

    Methods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity

    addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, invalidate, isChunkUnloaded, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient

    Methods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity

    createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBox

    Methods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity

    blockHolderGetter, containedChunk, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendData

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions

    addExceptionToTooltip

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
  • 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.minecraftforge.items.ItemStackHandler inventory
    • itemCapability

      protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandlerModifiable> itemCapability
    • name

      public String 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 com.simibubi.create.foundation.utility.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:
      addBehaviours in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • destroy

      public void destroy()
      Overrides:
      destroy in class com.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:
      tick in class com.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 compound, boolean clientPacket)
      Overrides:
      write in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      writeSafe in interface com.simibubi.create.foundation.utility.IPartialSafeNBT
      Overrides:
      writeSafe in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Overrides:
      read in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • getLastAssemblyException

      public com.simibubi.create.content.contraptions.AssemblyException getLastAssemblyException()
      Specified by:
      getLastAssemblyException in interface com.simibubi.create.content.contraptions.IDisplayAssemblyExceptions
    • getAssemblyDirection

      public net.minecraft.core.Direction getAssemblyDirection()
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface com.simibubi.create.content.contraptions.IControlContraption
    • attach

      public void attach(com.simibubi.create.content.contraptions.ControlledContraptionEntity contraption)
      Specified by:
      attach in interface com.simibubi.create.content.contraptions.IControlContraption
    • isAttachedTo

      public boolean isAttachedTo(com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption)
      Specified by:
      isAttachedTo in interface com.simibubi.create.content.contraptions.IControlContraption
    • getBlockPosition

      public net.minecraft.core.BlockPos getBlockPosition()
      Specified by:
      getBlockPosition in interface com.simibubi.create.content.contraptions.IControlContraption
    • onStall

      public void onStall()
      Specified by:
      onStall in interface com.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:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider