Class PlatformProxy
java.lang.Object
com.refinedmods.refinedstorage.common.PlatformProxy
- All Implemented Interfaces:
- Platform
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanBreakBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.player.Player player) booleancanEditBoxLoseFocus(net.minecraft.client.gui.components.EditBox editBox) createTransferManager(net.minecraft.world.inventory.AbstractContainerMenu containerMenu) drainContainer(net.minecraft.world.item.ItemStack container) fillContainer(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount) net.minecraft.world.item.ItemStackgetBlockAsItemStack(net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) longOptional<net.minecraft.sounds.SoundEvent> getBucketPickupSound(net.minecraft.world.level.block.LiquidBlock liquidBlock, net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.item.ItemStackgetCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.world.phys.BlockHitResult hitResult, net.minecraft.world.entity.player.Player player) getContainerProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) getContainerProviderSafely(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) getEnergyStorage(net.minecraft.world.item.ItemStack stack) net.minecraft.world.entity.player.PlayergetFakePlayer(net.minecraft.server.level.ServerLevel level, UUID playerId) net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingCraftingItems(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingRecipe craftingRecipe, net.minecraft.world.item.crafting.CraftingInput input) longinsertIntoContainer(net.minecraft.world.Container container, ItemResource itemResource, long amount, Action action) booleanisKeyDown(net.minecraft.client.KeyMapping keyMapping) static voidloadPlatform(Platform platform) voidonItemCrafted(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack, net.minecraft.world.inventory.CraftingContainer container) booleanplaceBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) booleanplaceFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.world.entity.player.Player player, FluidResource fluidResource) List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> processTooltipComponents(net.minecraft.world.item.ItemStack stack, net.minecraft.client.gui.GuiGraphics graphics, int mouseX, Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> imageComponent, List<net.minecraft.network.chat.Component> components) voidrenderTooltip(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> components, int x, int y) voidrequestModelDataUpdateOnClient(net.minecraft.world.level.block.entity.BlockEntity blockEntity, boolean updateChunk) voidsaveSavedData(net.minecraft.world.level.saveddata.SavedData savedData, File file, net.minecraft.core.HolderLookup.Provider provider, BiConsumer<File, net.minecraft.core.HolderLookup.Provider> defaultSaveFunction) <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
 voidsendPacketToClient(net.minecraft.server.level.ServerPlayer player, T packet) <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
 voidsendPacketToServer(T packet) voidsetSlotY(net.minecraft.world.inventory.Slot slot, int y) 
- 
Constructor Details- 
PlatformProxypublic PlatformProxy()
 
- 
- 
Method Details- 
loadPlatform
- 
getMenuOpener- Specified by:
- getMenuOpenerin interface- Platform
 
- 
getBucketAmountpublic long getBucketAmount()- Specified by:
- getBucketAmountin interface- Platform
 
- 
getConfig
- 
canEditBoxLoseFocuspublic boolean canEditBoxLoseFocus(net.minecraft.client.gui.components.EditBox editBox) - Specified by:
- canEditBoxLoseFocusin interface- Platform
 
- 
isKeyDownpublic boolean isKeyDown(net.minecraft.client.KeyMapping keyMapping) 
- 
getDefaultGridInsertionStrategyFactory- Specified by:
- getDefaultGridInsertionStrategyFactoryin interface- Platform
 
- 
getFluidRenderer- Specified by:
- getFluidRendererin interface- Platform
 
- 
drainContainer- Specified by:
- drainContainerin interface- Platform
 
- 
fillContainerpublic Optional<FluidOperationResult> fillContainer(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount) - Specified by:
- fillContainerin interface- Platform
 
- 
createTransferManagerpublic TransferManager createTransferManager(net.minecraft.world.inventory.AbstractContainerMenu containerMenu) - Specified by:
- createTransferManagerin interface- Platform
 
- 
insertIntoContainerpublic long insertIntoContainer(net.minecraft.world.Container container, ItemResource itemResource, long amount, Action action) - Specified by:
- insertIntoContainerin interface- Platform
 
- 
getCloneItemStackpublic net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.world.phys.BlockHitResult hitResult, net.minecraft.world.entity.player.Player player) - Specified by:
- getCloneItemStackin interface- Platform
 
- 
getRemainingCraftingItemspublic net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingCraftingItems(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingRecipe craftingRecipe, net.minecraft.world.item.crafting.CraftingInput input) - Specified by:
- getRemainingCraftingItemsin interface- Platform
 
- 
onItemCraftedpublic void onItemCrafted(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack, net.minecraft.world.inventory.CraftingContainer container) - Specified by:
- onItemCraftedin interface- Platform
 
- 
getFakePlayerpublic net.minecraft.world.entity.player.Player getFakePlayer(net.minecraft.server.level.ServerLevel level, @Nullable UUID playerId) - Specified by:
- getFakePlayerin interface- Platform
 
- 
canBreakBlockpublic boolean canBreakBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.player.Player player) - Specified by:
- canBreakBlockin interface- Platform
 
- 
placeBlockpublic boolean placeBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) - Specified by:
- placeBlockin interface- Platform
 
- 
placeFluidpublic boolean placeFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.world.entity.player.Player player, FluidResource fluidResource) - Specified by:
- placeFluidin interface- Platform
 
- 
getBlockAsItemStackpublic net.minecraft.world.item.ItemStack getBlockAsItemStack(net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
- getBlockAsItemStackin interface- Platform
 
- 
getBucketPickupSoundpublic Optional<net.minecraft.sounds.SoundEvent> getBucketPickupSound(net.minecraft.world.level.block.LiquidBlock liquidBlock, net.minecraft.world.level.block.state.BlockState state) - Specified by:
- getBucketPickupSoundin interface- Platform
 
- 
processTooltipComponentspublic List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> processTooltipComponents(net.minecraft.world.item.ItemStack stack, net.minecraft.client.gui.GuiGraphics graphics, int mouseX, Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> imageComponent, List<net.minecraft.network.chat.Component> components) - Specified by:
- processTooltipComponentsin interface- Platform
 
- 
renderTooltippublic void renderTooltip(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> components, int x, int y) - Specified by:
- renderTooltipin interface- Platform
 
- 
getEnergyStorage- Specified by:
- getEnergyStoragein interface- Platform
 
- 
sendPacketToServerpublic <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToServer(T packet) - Specified by:
- sendPacketToServerin interface- Platform
 
- 
sendPacketToClientpublic <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToClient(net.minecraft.server.level.ServerPlayer player, T packet) - Specified by:
- sendPacketToClientin interface- Platform
 
- 
saveSavedDatapublic void saveSavedData(net.minecraft.world.level.saveddata.SavedData savedData, File file, net.minecraft.core.HolderLookup.Provider provider, BiConsumer<File, net.minecraft.core.HolderLookup.Provider> defaultSaveFunction) - Specified by:
- saveSavedDatain interface- Platform
 
- 
getContainerProvider@Nullable public NetworkNodeContainerProvider getContainerProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction) - Specified by:
- getContainerProviderin interface- Platform
 
- 
getContainerProviderSafely@Nullable public NetworkNodeContainerProvider getContainerProviderSafely(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction) - Specified by:
- getContainerProviderSafelyin interface- Platform
 
- 
setSlotYpublic void setSlotY(net.minecraft.world.inventory.Slot slot, int y) 
- 
requestModelDataUpdateOnClientpublic void requestModelDataUpdateOnClient(net.minecraft.world.level.block.entity.BlockEntity blockEntity, boolean updateChunk) - Specified by:
- requestModelDataUpdateOnClientin interface- Platform
 
 
-