Class CustomFluidContainerTest.CustomFluidContainer

java.lang.Object
net.minecraft.world.item.Item
net.neoforged.neoforge.oldtest.item.CustomFluidContainerTest.CustomFluidContainer
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, IItemExtension
Enclosing class:
CustomFluidContainerTest

private static class CustomFluidContainerTest.CustomFluidContainer extends net.minecraft.world.item.Item
A custom fluid container item with a capacity of a vanilla bucket which uses the FluidUtil functionalities to pickup and place fluids.
  • Constructor Details

    • CustomFluidContainer

      public CustomFluidContainer(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • getName

      public net.minecraft.network.chat.Component getName(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      getName in class net.minecraft.world.item.Item
    • use

      public net.minecraft.world.InteractionResult use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item