类 NeutronCollectorTile

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
所有已实现的接口:
ITileIO, 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 NeutronCollectorTile extends BaseInventoryTileEntity implements ITileIO
Description:
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    net.minecraft.world.inventory.SimpleContainerData
     
     

    从类继承的字段 committee.nova.mods.avaritia.api.common.tile.BaseInventoryTileEntity

    capability

    从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • 构造器概要

    构造器
    构造器
    说明
    NeutronCollectorTile(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected boolean
     
     
    @Nullable net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int windowId, @NotNull net.minecraft.world.entity.player.Inventory playerInventory)
     
    void
    cycleSideModeForNeutronCollector(net.minecraft.core.Direction direction)
    只在PASSIVE_OUTPUT和ACTIVE_OUTPUT之间切换
    void
    extractFromHandler(net.minecraftforge.items.IItemHandler externalHandler, net.minecraft.core.Direction fromSide)
    从外部处理器抽取物品
    <T> @NotNull net.minecraftforge.common.util.LazyOptional<T>
    getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable net.minecraft.core.Direction side)
     
    @NotNull net.minecraft.network.chat.Component
     
     
    net.minecraft.world.item.Item
     
    int
     
    获取IO配置
     
    void
    insertToHandler(net.minecraftforge.items.IItemHandler externalHandler, net.minecraft.core.Direction toSide)
    向外部处理器插入物品
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    static void
    serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, NeutronCollectorTile tile)
     
    void
     
    void
     
    void
     

    从类继承的方法 committee.nova.mods.avaritia.api.common.tile.BaseInventoryTileEntity

    canOpen, canUnlock, createMenu, invalidateCaps, isUsableByPlayer, reviveCaps

    从类继承的方法 committee.nova.mods.avaritia.api.common.tile.BaseTileEntity

    dispatchIfChanged, getUpdatePacket, getUpdateTag, setChanged, setChangedAndDispatch, setChangedFast

    从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity

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

    从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
  • 字段详细资料

    • inventory

      public final ItemStackWrapper inventory
    • data

      public net.minecraft.world.inventory.SimpleContainerData data
  • 构造器详细资料

    • NeutronCollectorTile

      public NeutronCollectorTile(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • 方法详细资料

    • serverTick

      public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, NeutronCollectorTile tile)
    • createInventoryHandler

      public static ItemStackWrapper createInventoryHandler()
    • load

      public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      覆盖:
      load 在类中 BaseInventoryTileEntity
    • saveAdditional

      public void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      覆盖:
      saveAdditional 在类中 BaseInventoryTileEntity
    • getInventory

      @NotNull public @NotNull ItemStackWrapper getInventory()
      指定者:
      getInventory 在类中 BaseInventoryTileEntity
    • canWork

      protected boolean canWork()
    • getDisplayName

      @NotNull public @NotNull net.minecraft.network.chat.Component getDisplayName()
      指定者:
      getDisplayName 在接口中 net.minecraft.world.MenuProvider
    • createMenu

      @Nullable public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int windowId, @NotNull @NotNull net.minecraft.world.entity.player.Inventory playerInventory)
      指定者:
      createMenu 在类中 BaseInventoryTileEntity
    • getCapability

      @NotNull public <T> @NotNull net.minecraftforge.common.util.LazyOptional<T> getCapability(@NotNull net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable @Nullable net.minecraft.core.Direction side)
      指定者:
      getCapability 在接口中 net.minecraftforge.common.capabilities.ICapabilityProvider
      覆盖:
      getCapability 在类中 BaseInventoryTileEntity
    • getTier

      public CollectorTier getTier()
    • setTier

      public void setTier(CollectorTier tier)
    • getProductionTicks

      public int getProductionTicks()
    • getProduction

      public net.minecraft.world.item.Item getProduction()
    • getSideConfiguration

      public SideConfiguration getSideConfiguration()
      从接口复制的说明: ITileIO
      获取IO配置
      指定者:
      getSideConfiguration 在接口中 ITileIO
    • setSideConfiguration

      public void setSideConfiguration(SideConfiguration config)
      指定者:
      setSideConfiguration 在接口中 ITileIO
    • setIOChange

      public void setIOChange()
      指定者:
      setIOChange 在接口中 ITileIO
    • cycleSideModeForNeutronCollector

      public void cycleSideModeForNeutronCollector(net.minecraft.core.Direction direction)
      只在PASSIVE_OUTPUT和ACTIVE_OUTPUT之间切换
      指定者:
      cycleSideModeForNeutronCollector 在接口中 ITileIO
    • extractFromHandler

      public void extractFromHandler(net.minecraftforge.items.IItemHandler externalHandler, net.minecraft.core.Direction fromSide)
      从接口复制的说明: ITileIO
      从外部处理器抽取物品
      指定者:
      extractFromHandler 在接口中 ITileIO
    • insertToHandler

      public void insertToHandler(net.minecraftforge.items.IItemHandler externalHandler, net.minecraft.core.Direction toSide)
      从接口复制的说明: ITileIO
      向外部处理器插入物品
      指定者:
      insertToHandler 在接口中 ITileIO