Class RefinedStorageApiImpl
java.lang.Object
com.refinedmods.refinedstorage.common.RefinedStorageApiImpl
- All Implemented Interfaces:
RefinedStorageApi
-
Field Summary
Fields inherited from interface RefinedStorageApi
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidaddGridExtractionStrategyFactory(GridExtractionStrategyFactory extractionStrategyFactory) voidaddGridInsertionStrategyFactory(GridInsertionStrategyFactory insertionStrategyFactory) voidaddGridScrollingStrategyFactory(GridScrollingStrategyFactory scrollingStrategyFactory) voidvoidvoidvoidaddResourceFactory(ResourceFactory factory) voidvoidvoidbooleancanPlaceNetworkNode(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) createBlockItemEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, EnergyItemContext context) createGridExtractionStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) createGridInsertionStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) createGridScrollingStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) createItemEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, EnergyItemContext context) createNetworkNodeContainer(net.minecraft.world.level.block.entity.BlockEntity blockEntity, NetworkNode networkNode) createPlayerInventorySlotReference(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) net.minecraft.world.level.block.BlockcreateStorageBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, StorageBlockProvider provider) net.minecraft.world.inventory.AbstractContainerMenucreateStorageBlockContainerMenu(int syncId, net.minecraft.world.entity.player.Player player, StorageBlockData data, ResourceFactory resourceFactory, net.minecraft.world.inventory.MenuType<?> menuType) createStorageBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StorageBlockProvider provider) net.minecraft.resources.Identifiernet.minecraft.resources.IdentifiergetEnergyStorage(net.minecraft.world.item.ItemStack stack, EnergyItemContext context) getPattern(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) PlatformRegistry<net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference>> net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, StorageBlockData> getStorageRepository(net.minecraft.world.level.Level level) voidinitializeNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level, @Nullable Runnable callback) booleanvoidremoveNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level) voidsendMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component message) voidsendNoPermissionMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component message) voidsendNoPermissionToOpenMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component target) voidupdateNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level) voidusePlayerSlotReferencedItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item... items)
-
Constructor Details
-
RefinedStorageApiImpl
public RefinedStorageApiImpl()
-
-
Method Details
-
getStorageTypeRegistry
- Specified by:
getStorageTypeRegistryin interfaceRefinedStorageApi
-
getClientStorageRepository
- Specified by:
getClientStorageRepositoryin interfaceRefinedStorageApi
-
getStorageRepository
- Specified by:
getStorageRepositoryin interfaceRefinedStorageApi
-
getStorageContainerItemHelper
- Specified by:
getStorageContainerItemHelperin interfaceRefinedStorageApi
-
getResourceTypeRegistry
- Specified by:
getResourceTypeRegistryin interfaceRefinedStorageApi
-
getImporterTransferStrategyRegistry
- Specified by:
getImporterTransferStrategyRegistryin interfaceRefinedStorageApi
-
getExporterTransferStrategyRegistry
- Specified by:
getExporterTransferStrategyRegistryin interfaceRefinedStorageApi
-
addExternalStorageProviderFactory
- Specified by:
addExternalStorageProviderFactoryin interfaceRefinedStorageApi
-
getExternalStorageProviderFactories
- Specified by:
getExternalStorageProviderFactoriesin interfaceRefinedStorageApi
-
getDestructorStrategyFactories
- Specified by:
getDestructorStrategyFactoriesin interfaceRefinedStorageApi
-
addDestructorStrategyFactory
- Specified by:
addDestructorStrategyFactoryin interfaceRefinedStorageApi
-
getConstructorStrategyFactories
- Specified by:
getConstructorStrategyFactoriesin interfaceRefinedStorageApi
-
addConstructorStrategyFactory
- Specified by:
addConstructorStrategyFactoryin interfaceRefinedStorageApi
-
addStorageMonitorExtractionStrategy
- Specified by:
addStorageMonitorExtractionStrategyin interfaceRefinedStorageApi
-
getStorageMonitorExtractionStrategy
- Specified by:
getStorageMonitorExtractionStrategyin interfaceRefinedStorageApi
-
addStorageMonitorInsertionStrategy
- Specified by:
addStorageMonitorInsertionStrategyin interfaceRefinedStorageApi
-
getStorageMonitorInsertionStrategy
- Specified by:
getStorageMonitorInsertionStrategyin interfaceRefinedStorageApi
-
getNetworkComponentMapFactory
- Specified by:
getNetworkComponentMapFactoryin interfaceRefinedStorageApi
-
getGridSynchronizerRegistry
- Specified by:
getGridSynchronizerRegistryin interfaceRefinedStorageApi
-
getGridResourceRepositoryMapper
- Specified by:
getGridResourceRepositoryMapperin interfaceRefinedStorageApi
-
getGridResourceTypeRegistry
- Specified by:
getGridResourceTypeRegistryin interfaceRefinedStorageApi
-
getUpgradeRegistry
- Specified by:
getUpgradeRegistryin interfaceRefinedStorageApi
-
createNetworkNodeContainerProvider
- Specified by:
createNetworkNodeContainerProviderin interfaceRefinedStorageApi
-
createNetworkNodeContainer
public InWorldNetworkNodeContainer.Builder createNetworkNodeContainer(net.minecraft.world.level.block.entity.BlockEntity blockEntity, NetworkNode networkNode) - Specified by:
createNetworkNodeContainerin interfaceRefinedStorageApi
-
initializeNetworkNodeContainer
public void initializeNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level, @Nullable Runnable callback) - Specified by:
initializeNetworkNodeContainerin interfaceRefinedStorageApi
-
removeNetworkNodeContainer
public void removeNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level) - Specified by:
removeNetworkNodeContainerin interfaceRefinedStorageApi
-
updateNetworkNodeContainer
public void updateNetworkNodeContainer(InWorldNetworkNodeContainer container, @Nullable net.minecraft.world.level.Level level) - Specified by:
updateNetworkNodeContainerin interfaceRefinedStorageApi
-
createGridInsertionStrategy
public GridInsertionStrategy createGridInsertionStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) - Specified by:
createGridInsertionStrategyin interfaceRefinedStorageApi
-
addGridInsertionStrategyFactory
- Specified by:
addGridInsertionStrategyFactoryin interfaceRefinedStorageApi
-
addResourceContainerInsertStrategy
- Specified by:
addResourceContainerInsertStrategyin interfaceRefinedStorageApi
-
getResourceContainerInsertStrategies
- Specified by:
getResourceContainerInsertStrategiesin interfaceRefinedStorageApi
-
createGridExtractionStrategy
public GridExtractionStrategy createGridExtractionStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) - Specified by:
createGridExtractionStrategyin interfaceRefinedStorageApi
-
addGridExtractionStrategyFactory
public void addGridExtractionStrategyFactory(GridExtractionStrategyFactory extractionStrategyFactory) - Specified by:
addGridExtractionStrategyFactoryin interfaceRefinedStorageApi
-
createGridScrollingStrategy
public GridScrollingStrategy createGridScrollingStrategy(net.minecraft.world.inventory.AbstractContainerMenu containerMenu, net.minecraft.server.level.ServerPlayer player, Grid grid) - Specified by:
createGridScrollingStrategyin interfaceRefinedStorageApi
-
addGridScrollingStrategyFactory
- Specified by:
addGridScrollingStrategyFactoryin interfaceRefinedStorageApi
-
addResourceFactory
- Specified by:
addResourceFactoryin interfaceRefinedStorageApi
-
getItemResourceFactory
- Specified by:
getItemResourceFactoryin interfaceRefinedStorageApi
-
getItemStorageType
- Specified by:
getItemStorageTypein interfaceRefinedStorageApi
-
getFluidResourceFactory
- Specified by:
getFluidResourceFactoryin interfaceRefinedStorageApi
-
getFluidStorageType
- Specified by:
getFluidStorageTypein interfaceRefinedStorageApi
-
getAlternativeResourceFactories
- Specified by:
getAlternativeResourceFactoriesin interfaceRefinedStorageApi
-
addIngredientConverter
- Specified by:
addIngredientConverterin interfaceRefinedStorageApi
-
getIngredientConverter
- Specified by:
getIngredientConverterin interfaceRefinedStorageApi
-
addWirelessTransmitterRangeModifier
- Specified by:
addWirelessTransmitterRangeModifierin interfaceRefinedStorageApi
-
getWirelessTransmitterRangeModifier
- Specified by:
getWirelessTransmitterRangeModifierin interfaceRefinedStorageApi
-
getEnergyStorage
public Optional<EnergyStorage> getEnergyStorage(net.minecraft.world.item.ItemStack stack, EnergyItemContext context) - Specified by:
getEnergyStoragein interfaceRefinedStorageApi
-
getEnergyItemHelper
- Specified by:
getEnergyItemHelperin interfaceRefinedStorageApi
-
createItemEnergyStorage
public EnergyStorage createItemEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, EnergyItemContext context) - Specified by:
createItemEnergyStoragein interfaceRefinedStorageApi
-
createBlockItemEnergyStorage
public EnergyStorage createBlockItemEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, EnergyItemContext context) - Specified by:
createBlockItemEnergyStoragein interfaceRefinedStorageApi
-
getNetworkItemHelper
- Specified by:
getNetworkItemHelperin interfaceRefinedStorageApi
-
getPlayerSlotReferenceFactories
public PlatformRegistry<net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference>> getPlayerSlotReferenceFactories()- Specified by:
getPlayerSlotReferenceFactoriesin interfaceRefinedStorageApi
-
addPlayerSlotReferenceProvider
- Specified by:
addPlayerSlotReferenceProviderin interfaceRefinedStorageApi
-
createPlayerInventorySlotReference
public PlayerSlotReference createPlayerInventorySlotReference(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Specified by:
createPlayerInventorySlotReferencein interfaceRefinedStorageApi
-
usePlayerSlotReferencedItem
public void usePlayerSlotReferencedItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item... items) - Specified by:
usePlayerSlotReferencedItemin interfaceRefinedStorageApi
-
getPermissionRegistry
- Specified by:
getPermissionRegistryin interfaceRefinedStorageApi
-
createDefaultSecurityPolicy
- Specified by:
createDefaultSecurityPolicyin interfaceRefinedStorageApi
-
sendNoPermissionToOpenMessage
public void sendNoPermissionToOpenMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component target) - Specified by:
sendNoPermissionToOpenMessagein interfaceRefinedStorageApi
-
sendNoPermissionMessage
public void sendNoPermissionMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component message) - Specified by:
sendNoPermissionMessagein interfaceRefinedStorageApi
-
sendMessage
public void sendMessage(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component message) - Specified by:
sendMessagein interfaceRefinedStorageApi
-
canPlaceNetworkNode
public boolean canPlaceNetworkNode(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
canPlaceNetworkNodein interfaceRefinedStorageApi
-
getPattern
public Optional<Pattern> getPattern(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) - Specified by:
getPatternin interfaceRefinedStorageApi
-
getCreativeModeTabId
public net.minecraft.resources.Identifier getCreativeModeTabId()- Specified by:
getCreativeModeTabIdin interfaceRefinedStorageApi
-
getColoredCreativeModeTabId
public net.minecraft.resources.Identifier getColoredCreativeModeTabId()- Specified by:
getColoredCreativeModeTabIdin interfaceRefinedStorageApi
-
createStorageBlockEntity
public AbstractNetworkNodeContainerBlockEntity<?> createStorageBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StorageBlockProvider provider) - Specified by:
createStorageBlockEntityin interfaceRefinedStorageApi
-
createStorageBlock
public net.minecraft.world.level.block.Block createStorageBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, StorageBlockProvider provider) - Specified by:
createStorageBlockin interfaceRefinedStorageApi
-
createStorageBlockContainerMenu
public net.minecraft.world.inventory.AbstractContainerMenu createStorageBlockContainerMenu(int syncId, net.minecraft.world.entity.player.Player player, StorageBlockData data, ResourceFactory resourceFactory, net.minecraft.world.inventory.MenuType<?> menuType) - Specified by:
createStorageBlockContainerMenuin interfaceRefinedStorageApi
-
getStorageBlockDataStreamCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, StorageBlockData> getStorageBlockDataStreamCodec()- Specified by:
getStorageBlockDataStreamCodecin interfaceRefinedStorageApi
-
isEnergyRequired
public boolean isEnergyRequired()- Specified by:
isEnergyRequiredin interfaceRefinedStorageApi
-