Class PlatformProxy
java.lang.Object
com.refinedmods.refinedstorage.common.PlatformProxy
- All Implemented Interfaces:
Platform
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
PlatformProxy
public PlatformProxy()
-
-
Method Details
-
loadPlatform
-
getMenuOpener
- Specified by:
getMenuOpenerin interfacePlatform
-
getBucketAmount
public long getBucketAmount()- Specified by:
getBucketAmountin interfacePlatform
-
getConfig
-
canEditBoxLoseFocus
public boolean canEditBoxLoseFocus(net.minecraft.client.gui.components.EditBox editBox) - Specified by:
canEditBoxLoseFocusin interfacePlatform
-
isKeyDown
public boolean isKeyDown(net.minecraft.client.KeyMapping keyMapping) -
getDefaultGridInsertionStrategyFactory
- Specified by:
getDefaultGridInsertionStrategyFactoryin interfacePlatform
-
getFluidRenderer
- Specified by:
getFluidRendererin interfacePlatform
-
drainContainer
- Specified by:
drainContainerin interfacePlatform
-
fillContainer
public Optional<FluidOperationResult> fillContainer(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount) - Specified by:
fillContainerin interfacePlatform
-
createTransferManager
public TransferManager createTransferManager(net.minecraft.world.inventory.AbstractContainerMenu containerMenu) - Specified by:
createTransferManagerin interfacePlatform
-
insertIntoContainer
public long insertIntoContainer(net.minecraft.world.Container container, ItemResource itemResource, long amount, Action action) - Specified by:
insertIntoContainerin interfacePlatform
-
getCloneItemStack
public 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 interfacePlatform
-
getRemainingCraftingItems
public 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 interfacePlatform
-
onItemCrafted
public void onItemCrafted(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack, net.minecraft.world.inventory.CraftingContainer container) - Specified by:
onItemCraftedin interfacePlatform
-
getFakePlayer
public net.minecraft.world.entity.player.Player getFakePlayer(net.minecraft.server.level.ServerLevel level, @Nullable UUID playerId) - Specified by:
getFakePlayerin interfacePlatform
-
canBreakBlock
public 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 interfacePlatform
-
placeBlock
public 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 interfacePlatform
-
placeFluid
public 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 interfacePlatform
-
getBlockAsItemStack
public 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 interfacePlatform
-
getBucketPickupSound
public Optional<net.minecraft.sounds.SoundEvent> getBucketPickupSound(net.minecraft.world.level.block.LiquidBlock liquidBlock, net.minecraft.world.level.block.state.BlockState state) - Specified by:
getBucketPickupSoundin interfacePlatform
-
processTooltipComponents
public 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 interfacePlatform
-
renderTooltip
public 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 interfacePlatform
-
getEnergyStorage
- Specified by:
getEnergyStoragein interfacePlatform
-
sendPacketToServer
public <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToServer(T packet) - Specified by:
sendPacketToServerin interfacePlatform
-
sendPacketToClient
public <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToClient(net.minecraft.server.level.ServerPlayer player, T packet) - Specified by:
sendPacketToClientin interfacePlatform
-
saveSavedData
public 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 interfacePlatform
-
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 interfacePlatform
-
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 interfacePlatform
-
setSlotY
public void setSlotY(net.minecraft.world.inventory.Slot slot, int y) -
requestModelDataUpdateOnClient
public void requestModelDataUpdateOnClient(net.minecraft.world.level.block.entity.BlockEntity blockEntity, boolean updateChunk) - Specified by:
requestModelDataUpdateOnClientin interfacePlatform
-