Interface Platform
- All Known Implementing Classes:
AbstractPlatform,PlatformProxy
public interface Platform
-
Field Summary
Fields -
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) 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)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getMenuOpener
MenuOpener getMenuOpener() -
getBucketAmount
long getBucketAmount() -
getConfig
Config getConfig() -
canEditBoxLoseFocus
boolean canEditBoxLoseFocus(net.minecraft.client.gui.components.EditBox editBox) -
isKeyDown
boolean isKeyDown(net.minecraft.client.KeyMapping keyMapping) -
getDefaultGridInsertionStrategyFactory
GridInsertionStrategyFactory getDefaultGridInsertionStrategyFactory() -
getFluidRenderer
FluidRenderer getFluidRenderer() -
drainContainer
-
fillContainer
Optional<FluidOperationResult> fillContainer(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount) -
createTransferManager
TransferManager createTransferManager(net.minecraft.world.inventory.AbstractContainerMenu containerMenu) -
insertIntoContainer
long insertIntoContainer(net.minecraft.world.Container container, ItemResource itemResource, long amount, Action action) -
getCloneItemStack
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) -
getRemainingCraftingItems
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) -
onItemCrafted
void onItemCrafted(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack, net.minecraft.world.inventory.CraftingContainer container) -
getFakePlayer
net.minecraft.world.entity.player.Player getFakePlayer(net.minecraft.server.level.ServerLevel level, @Nullable UUID playerId) -
canBreakBlock
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) -
placeBlock
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) -
placeFluid
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) -
getBlockAsItemStack
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) -
getBucketPickupSound
Optional<net.minecraft.sounds.SoundEvent> getBucketPickupSound(net.minecraft.world.level.block.LiquidBlock liquidBlock, net.minecraft.world.level.block.state.BlockState state) -
processTooltipComponents
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) -
renderTooltip
void renderTooltip(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> components, int x, int y) -
getEnergyStorage
-
sendPacketToServer
<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToServer(T packet) -
sendPacketToClient
<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> void sendPacketToClient(net.minecraft.server.level.ServerPlayer player, T packet) -
saveSavedData
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) -
getContainerProvider
@Nullable NetworkNodeContainerProvider getContainerProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction) -
getContainerProviderSafely
@Nullable NetworkNodeContainerProvider getContainerProviderSafely(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction) -
setSlotY
void setSlotY(net.minecraft.world.inventory.Slot slot, int y) -
requestModelDataUpdateOnClient
void requestModelDataUpdateOnClient(net.minecraft.world.level.block.entity.BlockEntity blockEntity, boolean updateChunk)
-