Class InterfaceBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
com.refinedmods.refinedstorage.common.iface.InterfaceBlockEntity
All Implemented Interfaces:
ConfigurationCardTarget, NetworkItemTargetBlockEntity, BlockEntityWithDrops, ExtendedMenuProvider<InterfaceData>, NetworkNodeExtendedMenuProvider<InterfaceData>, NetworkNodeMenuProvider, PlayerAwareBlockEntity, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable

public class InterfaceBlockEntity extends AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode> implements NetworkNodeExtendedMenuProvider<InterfaceData>, BlockEntityWithDrops
  • Constructor Details

    • InterfaceBlockEntity

      public InterfaceBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      saveAdditional in class AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
    • writeConfiguration

      public void writeConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      writeConfiguration in interface ConfigurationCardTarget
      Overrides:
      writeConfiguration in class AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      loadAdditional in class AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
    • readConfiguration

      public void readConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      readConfiguration in interface ConfigurationCardTarget
      Overrides:
      readConfiguration in class AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode>
    • getExportedResources

      public ExportedResourcesContainer getExportedResources()
    • getExportedResourcesAsContainer

      public net.minecraft.world.Container getExportedResourcesAsContainer()
    • createMenu

      @Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getMenuData

      public InterfaceData getMenuData()
      Specified by:
      getMenuData in interface ExtendedMenuProvider<InterfaceData>
    • getMenuCodec

      public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf,InterfaceData> getMenuCodec()
      Specified by:
      getMenuCodec in interface ExtendedMenuProvider<InterfaceData>
    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface net.minecraft.world.Nameable
    • getDrops

      public final net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDrops()
      Specified by:
      getDrops in interface BlockEntityWithDrops