类 NeutronCompressorTile

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 NeutronCompressorTile extends BaseInventoryTileEntity implements ITileIO
Description:
  • 构造器详细资料

    • NeutronCompressorTile

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

    • createInventoryHandler

      public static ItemStackWrapper createInventoryHandler()
    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, NeutronCompressorTile tile)
    • getInventory

      @NotNull public @NotNull ItemStackWrapper getInventory()
      指定者:
      getInventory 在类中 BaseInventoryTileEntity
    • 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
    • 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 @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 CompressorTier getTier()
    • setTier

      public void setTier(CompressorTier tier)
    • getMaterialStack

      public net.minecraft.world.item.ItemStack getMaterialStack()
    • hasMaterialStack

      public boolean hasMaterialStack()
    • getMaterialCount

      public int getMaterialCount()
    • hasRecipe

      public boolean hasRecipe()
    • getActiveRecipe

      public ICompressorRecipe getActiveRecipe()
    • getMaterialsRequired

      public int getMaterialsRequired()
    • getTimeRequired

      public int getTimeRequired()
    • isRecipeLocked

      public boolean isRecipeLocked()
    • setRecipeLock

      public void setRecipeLock(boolean locked, ICompressorRecipe recipe)
    • getLockedRecipe

      public ICompressorRecipe getLockedRecipe()
    • clearMaterials

      public void clearMaterials()
    • canEjectMaterials

      public boolean canEjectMaterials()
    • canPlaceItem

      public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack)
    • getSideConfiguration

      public SideConfiguration getSideConfiguration()
      获取方块配置
      指定者:
      getSideConfiguration 在接口中 ITileIO
    • setSideConfiguration

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

      public void cycleSideModeForNeutronCollector(net.minecraft.core.Direction direction)
      从接口复制的说明: ITileIO
      自定义的面模式切换逻辑
      指定者:
      cycleSideModeForNeutronCollector 在接口中 ITileIO
    • setIOChange

      public void setIOChange()
      指定者:
      setIOChange 在接口中 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)
      向外部物品处理器插入物品
      指定者:
      insertToHandler 在接口中 ITileIO