Interface Platform

All Known Implementing Classes:
AbstractPlatform, PlatformProxy

public interface Platform
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Platform
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    boolean
    canEditBoxLoseFocus(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.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)
     
    long
     
    Optional<net.minecraft.sounds.SoundEvent>
    getBucketPickupSound(net.minecraft.world.level.block.LiquidBlock liquidBlock, net.minecraft.world.level.block.state.BlockState state)
     
    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)
     
     
    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.Player
    getFakePlayer(net.minecraft.server.level.ServerLevel level, UUID playerId)
     
     
     
    int
    getItemColor(net.minecraft.world.item.ItemStack stack, int tintIndex)
     
     
     
    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)
     
    long
    insertIntoContainer(net.minecraft.world.Container container, ItemResource itemResource, long amount, Action action)
     
    boolean
    isKeyDown(net.minecraft.client.KeyMapping keyMapping)
     
    void
    onItemCrafted(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack, net.minecraft.world.inventory.CraftingContainer container)
     
    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)
     
    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)
     
    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)
     
    void
    renderTooltip(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> components, int x, int y)
     
    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)
     
    <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
    void
    sendPacketToClient(net.minecraft.server.level.ServerPlayer player, T packet)
     
    <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
    void
     
    void
    setSlotY(net.minecraft.world.inventory.Slot slot, int y)
     
  • Field Details

    • INSTANCE

      static final Platform 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)
    • getItemGridResourceFactory

      GridResourceFactory getItemGridResourceFactory()
    • getFluidGridResourceFactory

      GridResourceFactory getFluidGridResourceFactory()
    • getDefaultGridInsertionStrategyFactory

      GridInsertionStrategyFactory getDefaultGridInsertionStrategyFactory()
    • getFluidRenderer

      FluidRenderer getFluidRenderer()
    • drainContainer

      Optional<FluidOperationResult> drainContainer(net.minecraft.world.item.ItemStack container)
    • 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

      Optional<EnergyStorage> getEnergyStorage(net.minecraft.world.item.ItemStack stack)
    • 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)
    • getItemColor

      int getItemColor(net.minecraft.world.item.ItemStack stack, int tintIndex)
    • setSlotY

      void setSlotY(net.minecraft.world.inventory.Slot slot, int y)