Uses of Class
net.minecraft.util.TypedActionResult
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of TypedActionResult in net.minecraft.item
Modifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack>
ItemUsage.consumeHeldItem
(World world, PlayerEntity player, Hand hand) Consumes the item thatplayer
holds.default TypedActionResult<ItemStack>
Equipment.equipAndSwap
(Item item, World world, PlayerEntity user, Hand hand) ArmorItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BoatItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BowItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BucketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BundleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.CrossbowItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EggItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ElytraItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EmptyMapItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderEyeItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderPearlItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ExperienceBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FireworkRocketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FishingRodItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GlassBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GoatHornItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.HoneyBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Item.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ItemStack.use
(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.LingeringPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.MilkBucketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OnAStickItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PlaceableOnWaterItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ShieldItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SnowballItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpawnEggItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SplashPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpyglassItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ThrowablePotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.TridentItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WritableBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WrittenBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item. -
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)