Class ItemBlockStateTagUtils

java.lang.Object
net.frozenblock.lib.item.api.ItemBlockStateTagUtils

public class ItemBlockStateTagUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    getBoolProperty(@NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.properties.BooleanProperty property, boolean orElse)
     
    static <T extends Comparable<T>>
    T
    getProperty(@NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.properties.Property<T> property, T defaultValue)
     
    static <T extends Comparable<T>>
    void
    setProperty(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.block.state.properties.Property<T> property, T value)
     

    Methods inherited from class java.lang.Object

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

    • ItemBlockStateTagUtils

      public ItemBlockStateTagUtils()
  • Method Details

    • getProperty

      public static <T extends Comparable<T>> T getProperty(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.properties.Property<T> property, T defaultValue)
    • getBoolProperty

      public static boolean getBoolProperty(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.properties.BooleanProperty property, boolean orElse)
    • setProperty

      public static <T extends Comparable<T>> void setProperty(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.block.state.properties.Property<T> property, T value)