Class SchematicannonBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, 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 SchematicannonBlockEntity extends SmartBlockEntity implements net.minecraft.world.MenuProvider
  • Field Details

    • NEIGHBOUR_CHECKING

      public static final int NEIGHBOUR_CHECKING
      See Also:
    • MAX_ANCHOR_DISTANCE

      public static final int MAX_ANCHOR_DISTANCE
      See Also:
    • inventory

      public SchematicannonInventory inventory
    • sendUpdate

      public boolean sendUpdate
    • dontUpdateChecklist

      public boolean dontUpdateChecklist
    • neighbourCheckCooldown

      public int neighbourCheckCooldown
    • printer

      public SchematicPrinter printer
    • missingItem

      public net.minecraft.world.item.ItemStack missingItem
    • positionNotLoaded

      public boolean positionNotLoaded
    • hasCreativeCrate

      public boolean hasCreativeCrate
    • previousTarget

      public net.minecraft.core.BlockPos previousTarget
    • attachedInventories

      public LinkedHashSet<net.neoforged.neoforge.items.IItemHandler> attachedInventories
    • flyingBlocks

      public List<LaunchedItem> flyingBlocks
    • checklist

      public MaterialChecklist checklist
    • remainingFuel

      public int remainingFuel
    • bookPrintingProgress

      public float bookPrintingProgress
    • schematicProgress

      public float schematicProgress
    • statusMsg

      public String statusMsg
    • state

    • blocksPlaced

      public int blocksPlaced
    • blocksToPlace

      public int blocksToPlace
    • replaceMode

      public int replaceMode
    • skipMissing

      public boolean skipMissing
    • replaceBlockEntities

      public boolean replaceBlockEntities
    • firstRenderTick

      public boolean firstRenderTick
    • defaultYaw

      public float defaultYaw
  • Constructor Details

    • SchematicannonBlockEntity

      public SchematicannonBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • findInventories

      public void findInventories()
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartBlockEntity
    • readFlyingBlocks

      protected void readFlyingBlocks(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries)
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class SmartBlockEntity
    • config

      public CSchematics config()
    • tickPrinter

      protected void tickPrinter()
    • getShotsPerGunpowder

      public int getShotsPerGunpowder()
    • initializePrinter

      protected void initializePrinter(net.minecraft.world.item.ItemStack blueprint)
    • getItemForBlock

      protected net.minecraft.world.item.ItemStack getItemForBlock(net.minecraft.world.level.block.state.BlockState blockState)
    • grabItemsFromAttachedInventories

      protected boolean grabItemsFromAttachedInventories(ItemRequirement.StackRequirement required, boolean simulate)
    • finishedPrinting

      public void finishedPrinting()
    • resetPrinter

      protected void resetPrinter()
    • shouldPlace

      protected boolean shouldPlace(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.block.state.BlockState toReplace, net.minecraft.world.level.block.state.BlockState toReplaceOther, boolean isNormalCube)
    • shouldIgnoreBlockState

      protected boolean shouldIgnoreBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be)
    • tickFlyingBlocks

      protected void tickFlyingBlocks()
    • refillFuelIfPossible

      protected void refillFuelIfPossible()
    • tickPaperPrinter

      protected void tickPaperPrinter()
    • stripBeltIfNotLast

      public static net.minecraft.world.level.block.state.BlockState stripBeltIfNotLast(net.minecraft.world.level.block.state.BlockState blockState)
    • launchBlockOrBelt

      protected void launchBlockOrBelt(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack icon, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • launchBelt

      protected void launchBelt(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state, int length, BeltBlockEntity.CasingType[] casings)
    • launchBlock

      protected void launchBlock(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.nbt.CompoundTag data)
    • launchEntity

      protected void launchEntity(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity)
    • playFiringSound

      public void playFiringSound()
    • 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
    • updateChecklist

      public void updateChecklist()
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartBlockEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Overrides:
      getRenderBoundingBox in class CachedRenderBBBlockEntity
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
      Overrides:
      collectImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity