Class ExpandBlockItemStateProperties
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBlockItemStateProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.block.state.BlockStateapply(net.minecraft.world.item.component.BlockItemStateProperties internal, net.minecraft.world.level.block.state.BlockState state) Applies the BlockItemStateProperties to the givenBlockState.static booleanisEmpty(net.minecraft.world.item.component.BlockItemStateProperties internal) Checks if the BlockItemStateProperties is empty.static net.minecraft.world.item.component.BlockItemStatePropertiesCreates a new BlockItemStateProperties with the given properties.properties(net.minecraft.world.item.component.BlockItemStateProperties internal) Gets the properties of the BlockItemStateProperties.
-
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 givenBlockState.- Parameters:
state- TheBlockStateto apply the properties to.- Returns:
- The new
BlockState.
-