Interface XplatAbstractions


public interface XplatAbstractions
  • Field Summary

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

    Modifier and Type
    Method
    Description
    void
    addAxeStripping(net.minecraft.world.level.block.Block input, net.minecraft.world.level.block.Block output)
     
    boolean
    canFurnaceBurn(net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity furnace, @Nullable net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> items, int maxStackSize)
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.block.entity.BlockEntityType<T>
    createBlockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> func, net.minecraft.world.level.block.Block... blocks)
     
    <T extends net.minecraft.world.inventory.AbstractContainerMenu, D>
    net.minecraft.world.inventory.MenuType<T>
    createMenuType(org.apache.commons.lang3.function.TriFunction<Integer,net.minecraft.world.entity.player.Inventory,D,T> constructor, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,D> streamCodec)
     
    net.minecraft.world.item.Item.Properties
     
    default net.minecraft.world.item.Item.Properties
     
    ethicalComponent(net.minecraft.world.entity.item.PrimedTnt tnt)
     
    boolean
    extractFluidFromItemEntity(net.minecraft.world.entity.item.ItemEntity item, net.minecraft.world.level.material.Fluid fluid)
     
    boolean
    extractFluidFromPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid)
     
    @Nullable AvatarWieldable
    findAvatarWieldable(net.minecraft.world.item.ItemStack stack)
     
    @Nullable BlockProvider
    findBlockProvider(net.minecraft.world.item.ItemStack stack)
     
    @Nullable CoordBoundItem
    findCoordBoundItem(net.minecraft.world.item.ItemStack stack)
     
    findExoflameHeatable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    @Nullable HornHarvestable
    findHornHarvestable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    findHourglassTrigger(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    findManaGhost(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    @Nullable ManaItem
    findManaItem(net.minecraft.world.item.ItemStack stack)
     
    default @Nullable ManaReceiver
    findManaReceiver(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction)
     
    @Nullable ManaReceiver
    findManaReceiver(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be, @Nullable net.minecraft.core.Direction direction)
     
    @Nullable ManaTrigger
    findManaTrigger(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    @Nullable Relic
    findRelic(net.minecraft.world.item.ItemStack stack)
     
    @Nullable SparkAttachable
    findSparkAttachable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, @Nullable net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.core.Direction direction)
     
    @Nullable Wandable
    findWandable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
     
    boolean
    fireCorporeaIndexRequestEvent(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count, CorporeaSpark spark)
     
    boolean
    fireCorporeaRequestEvent(CorporeaRequestMatcher matcher, int itemCount, CorporeaSpark spark, boolean dryRun)
     
    void
    fireElvenPortalUpdateEvent(net.minecraft.world.level.block.entity.BlockEntity portal, net.minecraft.world.phys.AABB bounds, boolean open, List<net.minecraft.world.item.ItemStack> stacksInside)
     
    float
    fireManaDiscountEvent(net.minecraft.world.entity.player.Player player, float discount, net.minecraft.world.item.ItemStack tool)
     
    void
    fireManaItemEvent(net.minecraft.world.entity.player.Player player, List<net.minecraft.world.item.ItemStack> toReturn)
     
    void
     
    boolean
    fireManaProficiencyEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, boolean proficient)
     
     
    net.minecraft.world.level.material.Fluid
    getBucketFluid(net.minecraft.world.item.BucketItem item)
     
    @Nullable net.minecraft.world.food.FoodProperties
    getFoodProperties(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
     
    int
    getSmeltingBurnTime(net.minecraft.world.item.ItemStack stack)
     
    ghostRailComponent(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
     
    default boolean
     
    boolean
    hasInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos)
     
    boolean
    insertFluidIntoPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid)
     
    net.minecraft.world.item.ItemStack
    insertToInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos, net.minecraft.world.item.ItemStack toInsert, boolean simulate)
     
    boolean
     
    boolean
     
    default boolean
     
    boolean
    isFluidContainer(net.minecraft.world.entity.item.ItemEntity item)
     
    default boolean
     
    boolean
    isInGlassTag(net.minecraft.world.level.block.state.BlockState state)
     
    boolean
     
    boolean
     
    boolean
    isRedStringContainerTarget(net.minecraft.world.level.block.entity.BlockEntity be)
     
    itemFlagsComponent(net.minecraft.world.entity.item.ItemEntity item)
     
    keptItemsComponent(net.minecraft.world.entity.player.Player player, boolean reviveCaps)
     
    looniumComponent(net.minecraft.world.entity.LivingEntity entity)
     
    narslimmusComponent(net.minecraft.world.entity.monster.Slime slime)
     
    newRedStringContainer(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    default net.minecraft.world.item.Item.Properties
    noRepairOnForge(net.minecraft.world.item.Item.Properties builder)
    Forge allows items to opt out of craft-repairing using the builder.
    <D> void
    openMenu(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider menu, D initialData, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,D> streamCodec)
     
    boolean
    preventsRemoteMovement(net.minecraft.world.entity.item.ItemEntity entity)
     
    net.minecraft.world.level.block.state.properties.BlockSetType
    registerBlockSetType(String name, boolean canOpenByHand, net.minecraft.world.level.block.SoundType soundType, net.minecraft.sounds.SoundEvent doorClose, net.minecraft.sounds.SoundEvent doorOpen, net.minecraft.sounds.SoundEvent trapdoorClose, net.minecraft.sounds.SoundEvent trapdoorOpen, net.minecraft.sounds.SoundEvent pressurePlateClickOff, net.minecraft.sounds.SoundEvent pressurePlateClickOn, net.minecraft.sounds.SoundEvent buttonClickOff, net.minecraft.sounds.SoundEvent buttonClickOn)
     
    void
    registerReloadListener(net.minecraft.server.packs.PackType type, net.minecraft.resources.ResourceLocation id, net.minecraft.server.packs.resources.PreparableReloadListener listener)
     
    default net.minecraft.world.level.block.state.properties.BlockSetType
     
    default net.minecraft.world.level.block.state.properties.WoodType
    registerWoodType(String name, net.minecraft.world.level.block.state.properties.BlockSetType blockSetType)
     
    net.minecraft.world.level.block.state.properties.WoodType
    registerWoodType(String name, net.minecraft.world.level.block.state.properties.BlockSetType setType, net.minecraft.world.level.block.SoundType soundType, net.minecraft.world.level.block.SoundType hangingSignSoundType, net.minecraft.sounds.SoundEvent fenceGateClose, net.minecraft.sounds.SoundEvent fenceGateOpen)
     
    void
    sendToNear(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
     
    void
    sendToPlayer(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
     
    void
    sendToTracking(net.minecraft.world.entity.Entity e, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
     
    tigersEyeComponent(net.minecraft.world.entity.monster.Creeper creeper)
     
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
    toVanillaClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
     
    int
    transferEnergyToNeighbors(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int energy)
     
     
  • Field Details

  • Method Details

    • gogLoaded

      default boolean gogLoaded()
    • isFabric

      default boolean isFabric()
    • isForge

      default boolean isForge()
    • isModLoaded

      boolean isModLoaded(String modId)
    • isDevEnvironment

      boolean isDevEnvironment()
    • isDataGen

      boolean isDataGen()
    • isPhysicalClient

      boolean isPhysicalClient()
    • getBotaniaVersion

      String getBotaniaVersion()
    • findAvatarWieldable

      @Nullable @Nullable AvatarWieldable findAvatarWieldable(net.minecraft.world.item.ItemStack stack)
    • findBlockProvider

      @Nullable @Nullable BlockProvider findBlockProvider(net.minecraft.world.item.ItemStack stack)
    • findCoordBoundItem

      @Nullable @Nullable CoordBoundItem findCoordBoundItem(net.minecraft.world.item.ItemStack stack)
    • findManaItem

      @Nullable @Nullable ManaItem findManaItem(net.minecraft.world.item.ItemStack stack)
    • findRelic

      @Nullable @Nullable Relic findRelic(net.minecraft.world.item.ItemStack stack)
    • findExoflameHeatable

      @Nullable @Nullable ExoflameHeatable findExoflameHeatable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • findHornHarvestable

      @Nullable @Nullable HornHarvestable findHornHarvestable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • findHourglassTrigger

      @Nullable @Nullable HourglassTrigger findHourglassTrigger(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • findManaGhost

      @Nullable @Nullable ManaCollisionGhost findManaGhost(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • findManaReceiver

      @Nullable default @Nullable ManaReceiver findManaReceiver(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable @Nullable net.minecraft.core.Direction direction)
    • findManaReceiver

      @Nullable @Nullable ManaReceiver findManaReceiver(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be, @Nullable @Nullable net.minecraft.core.Direction direction)
    • findSparkAttachable

      @Nullable @Nullable SparkAttachable findSparkAttachable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.core.Direction direction)
    • findManaTrigger

      @Nullable @Nullable ManaTrigger findManaTrigger(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • findWandable

      @Nullable @Nullable Wandable findWandable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    • isFluidContainer

      boolean isFluidContainer(net.minecraft.world.entity.item.ItemEntity item)
    • extractFluidFromItemEntity

      boolean extractFluidFromItemEntity(net.minecraft.world.entity.item.ItemEntity item, net.minecraft.world.level.material.Fluid fluid)
    • extractFluidFromPlayerItem

      boolean extractFluidFromPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid)
    • insertFluidIntoPlayerItem

      boolean insertFluidIntoPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid)
    • hasInventory

      boolean hasInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos)
    • insertToInventory

      net.minecraft.world.item.ItemStack insertToInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos, net.minecraft.world.item.ItemStack toInsert, boolean simulate)
    • ethicalComponent

      EthicalComponent ethicalComponent(net.minecraft.world.entity.item.PrimedTnt tnt)
    • ghostRailComponent

      SpectralRailComponent ghostRailComponent(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • itemFlagsComponent

      ItemFlagsComponent itemFlagsComponent(net.minecraft.world.entity.item.ItemEntity item)
    • keptItemsComponent

      KeptItemsComponent keptItemsComponent(net.minecraft.world.entity.player.Player player, boolean reviveCaps)
    • looniumComponent

      @Nullable @Nullable LooniumComponent looniumComponent(net.minecraft.world.entity.LivingEntity entity)
    • narslimmusComponent

      NarslimmusComponent narslimmusComponent(net.minecraft.world.entity.monster.Slime slime)
    • tigersEyeComponent

      TigerseyeComponent tigersEyeComponent(net.minecraft.world.entity.monster.Creeper creeper)
    • fireCorporeaRequestEvent

      boolean fireCorporeaRequestEvent(CorporeaRequestMatcher matcher, int itemCount, CorporeaSpark spark, boolean dryRun)
    • fireCorporeaIndexRequestEvent

      boolean fireCorporeaIndexRequestEvent(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count, CorporeaSpark spark)
    • fireManaItemEvent

      void fireManaItemEvent(net.minecraft.world.entity.player.Player player, List<net.minecraft.world.item.ItemStack> toReturn)
    • fireManaDiscountEvent

      float fireManaDiscountEvent(net.minecraft.world.entity.player.Player player, float discount, net.minecraft.world.item.ItemStack tool)
    • fireManaProficiencyEvent

      boolean fireManaProficiencyEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, boolean proficient)
    • fireElvenPortalUpdateEvent

      void fireElvenPortalUpdateEvent(net.minecraft.world.level.block.entity.BlockEntity portal, net.minecraft.world.phys.AABB bounds, boolean open, List<net.minecraft.world.item.ItemStack> stacksInside)
    • fireManaNetworkEvent

      void fireManaNetworkEvent(ManaReceiver thing, ManaBlockType type, ManaNetworkAction action)
    • toVanillaClientboundPacket

      net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> toVanillaClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
    • sendToPlayer

      void sendToPlayer(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
    • sendToNear

      void sendToNear(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
    • sendToTracking

      void sendToTracking(net.minecraft.world.entity.Entity e, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet)
    • createBlockEntityType

      <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> createBlockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> func, net.minecraft.world.level.block.Block... blocks)
    • registerReloadListener

      void registerReloadListener(net.minecraft.server.packs.PackType type, net.minecraft.resources.ResourceLocation id, net.minecraft.server.packs.resources.PreparableReloadListener listener)
    • defaultItemBuilder

      net.minecraft.world.item.Item.Properties defaultItemBuilder()
    • defaultItemBuilderWithCustomDamageOnFabric

      default net.minecraft.world.item.Item.Properties defaultItemBuilderWithCustomDamageOnFabric()
    • noRepairOnForge

      default net.minecraft.world.item.Item.Properties noRepairOnForge(net.minecraft.world.item.Item.Properties builder)
      Forge allows items to opt out of craft-repairing using the builder. Fabric we handle it manually in RepairItemRecipeFabricMixin
    • createMenuType

      <T extends net.minecraft.world.inventory.AbstractContainerMenu, D> net.minecraft.world.inventory.MenuType<T> createMenuType(org.apache.commons.lang3.function.TriFunction<Integer,net.minecraft.world.entity.player.Inventory,D,T> constructor, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,D> streamCodec)
    • tryCreateEquipmentHandler

      @Nullable @Nullable EquipmentHandler tryCreateEquipmentHandler()
    • openMenu

      <D> void openMenu(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider menu, D initialData, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,D> streamCodec)
    • getOreTag

      net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> getOreTag()
    • isInGlassTag

      boolean isInGlassTag(net.minecraft.world.level.block.state.BlockState state)
    • canFurnaceBurn

      boolean canFurnaceBurn(net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity furnace, @Nullable @Nullable net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> items, int maxStackSize)
    • getBucketFluid

      net.minecraft.world.level.material.Fluid getBucketFluid(net.minecraft.world.item.BucketItem item)
    • getSmeltingBurnTime

      int getSmeltingBurnTime(net.minecraft.world.item.ItemStack stack)
    • preventsRemoteMovement

      boolean preventsRemoteMovement(net.minecraft.world.entity.item.ItemEntity entity)
    • addAxeStripping

      void addAxeStripping(net.minecraft.world.level.block.Block input, net.minecraft.world.level.block.Block output)
    • transferEnergyToNeighbors

      int transferEnergyToNeighbors(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int energy)
    • getFoodProperties

      @Nullable @Nullable net.minecraft.world.food.FoodProperties getFoodProperties(net.minecraft.world.item.ItemStack stack)
    • isRedStringContainerTarget

      boolean isRedStringContainerTarget(net.minecraft.world.level.block.entity.BlockEntity be)
    • newRedStringContainer

      RedStringContainerBlockEntity newRedStringContainer(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • registerWoodBlockSetType

      default net.minecraft.world.level.block.state.properties.BlockSetType registerWoodBlockSetType(String name)
    • registerBlockSetType

      net.minecraft.world.level.block.state.properties.BlockSetType registerBlockSetType(String name, boolean canOpenByHand, net.minecraft.world.level.block.SoundType soundType, net.minecraft.sounds.SoundEvent doorClose, net.minecraft.sounds.SoundEvent doorOpen, net.minecraft.sounds.SoundEvent trapdoorClose, net.minecraft.sounds.SoundEvent trapdoorOpen, net.minecraft.sounds.SoundEvent pressurePlateClickOff, net.minecraft.sounds.SoundEvent pressurePlateClickOn, net.minecraft.sounds.SoundEvent buttonClickOff, net.minecraft.sounds.SoundEvent buttonClickOn)
    • registerWoodType

      default net.minecraft.world.level.block.state.properties.WoodType registerWoodType(String name, net.minecraft.world.level.block.state.properties.BlockSetType blockSetType)
    • registerWoodType

      net.minecraft.world.level.block.state.properties.WoodType registerWoodType(String name, net.minecraft.world.level.block.state.properties.BlockSetType setType, net.minecraft.world.level.block.SoundType soundType, net.minecraft.world.level.block.SoundType hangingSignSoundType, net.minecraft.sounds.SoundEvent fenceGateClose, net.minecraft.sounds.SoundEvent fenceGateOpen)