Class ExpandBlockItemStateProperties

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBlockItemStateProperties

@ZenRegister public class ExpandBlockItemStateProperties extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.block.state.BlockState
    apply(net.minecraft.world.item.component.BlockItemStateProperties internal, net.minecraft.world.level.block.state.BlockState state)
    Applies the BlockItemStateProperties to the given BlockState.
    static boolean
    isEmpty(net.minecraft.world.item.component.BlockItemStateProperties internal)
    Checks if the BlockItemStateProperties is empty.
    static net.minecraft.world.item.component.BlockItemStateProperties
    of(Map<String,String> properties)
    Creates a new BlockItemStateProperties with the given properties.
    static Map<String,String>
    properties(net.minecraft.world.item.component.BlockItemStateProperties internal)
    Gets the properties of the BlockItemStateProperties.

    Methods inherited from class java.lang.Object

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

    • ExpandBlockItemStateProperties

      public ExpandBlockItemStateProperties()
  • Method Details

    • of

      public static net.minecraft.world.item.component.BlockItemStateProperties of(Map<String,String> properties)
      Creates a new BlockItemStateProperties with the given properties.
      Parameters:
      properties - The properties.
      Returns:
      The new BlockItemStateProperties.
    • properties

      public static Map<String,String> properties(net.minecraft.world.item.component.BlockItemStateProperties internal)
      Gets the properties of the BlockItemStateProperties.
      Returns:
      The properties.
    • isEmpty

      public static boolean isEmpty(net.minecraft.world.item.component.BlockItemStateProperties internal)
      Checks if the BlockItemStateProperties is empty.
      Returns:
      Whether the BlockItemStateProperties is empty.
    • apply

      public static net.minecraft.world.level.block.state.BlockState apply(net.minecraft.world.item.component.BlockItemStateProperties internal, net.minecraft.world.level.block.state.BlockState state)
      Applies the BlockItemStateProperties to the given BlockState.
      Parameters:
      state - The BlockState to apply the properties to.
      Returns:
      The new BlockState.