Interface Platform
- All Known Implementing Classes:
AbstractPlatform
,PlatformProxy
public interface Platform
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
requestModelDataUpdateOnClient
(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, boolean updateChunk) 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>
voidsendPacketToClient
(net.minecraft.server.level.ServerPlayer player, T packet) <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
voidsendPacketToServer
(T packet) void
setSlotY
(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) -
getItemColor
int getItemColor(net.minecraft.world.item.ItemStack stack, int tintIndex) -
setSlotY
void setSlotY(net.minecraft.world.inventory.Slot slot, int y) -
requestModelDataUpdateOnClient
void requestModelDataUpdateOnClient(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, boolean updateChunk)
-