Package vazkii.botania.xplat
Interface XplatAbstractions
public interface XplatAbstractions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAxeStripping(net.minecraft.world.level.block.Block input, net.minecraft.world.level.block.Block output) booleancanFurnaceBurn(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.Propertiesdefault net.minecraft.world.item.Item.PropertiesethicalComponent(net.minecraft.world.entity.item.PrimedTnt tnt) booleanextractFluidFromItemEntity(net.minecraft.world.entity.item.ItemEntity item, net.minecraft.world.level.material.Fluid fluid) booleanextractFluidFromPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid) @Nullable AvatarWieldablefindAvatarWieldable(net.minecraft.world.item.ItemStack stack) @Nullable BlockProviderfindBlockProvider(net.minecraft.world.item.ItemStack stack) @Nullable CoordBoundItemfindCoordBoundItem(net.minecraft.world.item.ItemStack stack) @Nullable ExoflameHeatablefindExoflameHeatable(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 HornHarvestablefindHornHarvestable(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 HourglassTriggerfindHourglassTrigger(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 ManaCollisionGhostfindManaGhost(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 ManaItemfindManaItem(net.minecraft.world.item.ItemStack stack) default @Nullable ManaReceiverfindManaReceiver(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction direction) @Nullable ManaReceiverfindManaReceiver(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 ManaTriggerfindManaTrigger(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 RelicfindRelic(net.minecraft.world.item.ItemStack stack) @Nullable SparkAttachablefindSparkAttachable(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 WandablefindWandable(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) booleanfireCorporeaIndexRequestEvent(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count, CorporeaSpark spark) booleanfireCorporeaRequestEvent(CorporeaRequestMatcher matcher, int itemCount, CorporeaSpark spark, boolean dryRun) voidfireElvenPortalUpdateEvent(net.minecraft.world.level.block.entity.BlockEntity portal, net.minecraft.world.phys.AABB bounds, boolean open, List<net.minecraft.world.item.ItemStack> stacksInside) floatfireManaDiscountEvent(net.minecraft.world.entity.player.Player player, float discount, net.minecraft.world.item.ItemStack tool) voidfireManaItemEvent(net.minecraft.world.entity.player.Player player, List<net.minecraft.world.item.ItemStack> toReturn) voidfireManaNetworkEvent(ManaReceiver thing, ManaBlockType type, ManaNetworkAction action) booleanfireManaProficiencyEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, boolean proficient) net.minecraft.world.level.material.FluidgetBucketFluid(net.minecraft.world.item.BucketItem item) @Nullable net.minecraft.world.food.FoodPropertiesgetFoodProperties(net.minecraft.world.item.ItemStack stack) net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> intgetSmeltingBurnTime(net.minecraft.world.item.ItemStack stack) ghostRailComponent(net.minecraft.world.entity.vehicle.AbstractMinecart cart) default booleanbooleanhasInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos) booleaninsertFluidIntoPlayerItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.material.Fluid fluid) net.minecraft.world.item.ItemStackinsertToInventory(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction sideOfPos, net.minecraft.world.item.ItemStack toInsert, boolean simulate) booleanbooleandefault booleanisFabric()booleanisFluidContainer(net.minecraft.world.entity.item.ItemEntity item) default booleanisForge()booleanisInGlassTag(net.minecraft.world.level.block.state.BlockState state) booleanisModLoaded(String modId) booleanbooleanisRedStringContainerTarget(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) @Nullable LooniumComponentlooniumComponent(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.PropertiesnoRepairOnForge(net.minecraft.world.item.Item.Properties builder) Forge allows items to opt out of craft-repairing using the builder.<D> voidopenMenu(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) booleanpreventsRemoteMovement(net.minecraft.world.entity.item.ItemEntity entity) net.minecraft.world.level.block.state.properties.BlockSetTyperegisterBlockSetType(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) voidregisterReloadListener(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.BlockSetTypedefault net.minecraft.world.level.block.state.properties.WoodTyperegisterWoodType(String name, net.minecraft.world.level.block.state.properties.BlockSetType blockSetType) net.minecraft.world.level.block.state.properties.WoodTyperegisterWoodType(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) voidsendToNear(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet) voidsendToPlayer(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.network.protocol.common.custom.CustomPacketPayload packet) voidsendToTracking(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) inttransferEnergyToNeighbors(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int energy) @Nullable EquipmentHandler
-
Field Details
-
INSTANCE
-
-
Method Details
-
gogLoaded
default boolean gogLoaded() -
isFabric
default boolean isFabric() -
isForge
default boolean isForge() -
isModLoaded
-
isDevEnvironment
boolean isDevEnvironment() -
isDataGen
boolean isDataGen() -
isPhysicalClient
boolean isPhysicalClient() -
getBotaniaVersion
String getBotaniaVersion() -
findAvatarWieldable
-
findBlockProvider
-
findCoordBoundItem
-
findManaItem
-
findRelic
-
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
-
ghostRailComponent
-
itemFlagsComponent
-
keptItemsComponent
KeptItemsComponent keptItemsComponent(net.minecraft.world.entity.player.Player player, boolean reviveCaps) -
looniumComponent
@Nullable @Nullable LooniumComponent looniumComponent(net.minecraft.world.entity.LivingEntity entity) -
narslimmusComponent
-
tigersEyeComponent
-
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
-
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
-
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)
-