Package net.darkhax.botanypots.events
Class LookupFertilizerEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.darkhax.botanypots.events.BotanyPotEvent
net.darkhax.botanypots.events.LookupFertilizerEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionLookupFertilizerEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, BlockEntityBotanyPot pot, Fertilizer original) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStatenet.minecraft.world.InteractionHandgetHand()net.minecraft.world.entity.player.Playernet.minecraft.world.item.ItemStackgetStack()voidsetLookupResult(Fertilizer newResult) Methods inherited from class net.darkhax.botanypots.events.BotanyPotEvent
getLevel, getPos, getPotMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
LookupFertilizerEvent
public LookupFertilizerEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, BlockEntityBotanyPot pot, Fertilizer original)
-
-
Method Details
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState() -
getPlayer
public net.minecraft.world.entity.player.Player getPlayer() -
getHand
public net.minecraft.world.InteractionHand getHand() -
getStack
public net.minecraft.world.item.ItemStack getStack() -
getOriginal
-
getLookupResult
-
setLookupResult
-