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

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField

    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 net.createmod.catnip.data.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.neoforged.neoforge.items.ItemStackHandler
     
    protected net.neoforged.neoforge.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 class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY
  • 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 tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     
    void
     
    protected void
    write(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, writeSafe

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

    createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBox

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

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

    Methods 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, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdate

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

    addExceptionToTooltip

    Methods 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

      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 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:
      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 tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      write in class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, 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