Uses of Class
net.minecraft.util.TypedActionResult
-
Uses of TypedActionResult in net.minecraft.item
Modifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack>
ItemUsage.consumeHeldItem
(World world, PlayerEntity player, Hand hand) ArmorItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BoatItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BowItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BucketItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BundleItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.CrossbowItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EggItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ElytraItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EmptyMapItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderEyeItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderPearlItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ExperienceBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FireworkRocketItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FishingRodItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.GlassBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.HoneyBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.Item.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ItemStack.use
(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.LilyPadItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.LingeringPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.MilkBucketItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.OnAStickItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.PotionItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ShieldItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SnowballItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpawnEggItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SplashPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpyglassItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ThrowablePotionItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.TridentItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WritableBookItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WrittenBookItem.use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player. -
Uses of TypedActionResult in net.minecraft.util
Modifier and TypeMethodDescriptionstatic <T> TypedActionResult<T>
TypedActionResult.consume
(T data) static <T> TypedActionResult<T>
TypedActionResult.fail
(T data) static <T> TypedActionResult<T>
TypedActionResult.pass
(T data) static <T> TypedActionResult<T>
TypedActionResult.success
(T data) static <T> TypedActionResult<T>
TypedActionResult.success
(T data, boolean swingHand)