Class BucketFluidTint

java.lang.Object
de.cech12.bucketlib.client.color.BucketFluidTint
All Implemented Interfaces:
net.minecraft.client.color.item.ItemTintSource

public class BucketFluidTint extends Object implements net.minecraft.client.color.item.ItemTintSource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BucketFluidTint
     
    static final com.mojang.serialization.MapCodec<BucketFluidTint>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    calculate(@NotNull net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity entity)
     
    @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.client.color.item.ItemTintSource>
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final BucketFluidTint INSTANCE
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<BucketFluidTint> MAP_CODEC
  • Method Details

    • calculate

      public int calculate(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity)
      Specified by:
      calculate in interface net.minecraft.client.color.item.ItemTintSource
    • type

      @NotNull public @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.client.color.item.ItemTintSource> type()
      Specified by:
      type in interface net.minecraft.client.color.item.ItemTintSource