public class BlockProperties
extends java.lang.Object
| Constructor and Description |
|---|
BlockProperties(MaterialAPI<?> material,
MaterialColorAPI<?> materialColor,
java.util.Map<java.lang.String,java.lang.Integer> effectiveTools,
ResourceLocationAPI<?> registryName,
@Nullable java.util.function.Function<BlockStateAPI<?>,BlockStateAPI<?>> stateTransformer,
@Nullable java.util.function.Function<TILItemUseContext,ActionResult> useFunc,
@Nullable BlockBuilderAPI.BlockEntityCreator blockEntityCreator) |
| Modifier and Type | Method and Description |
|---|---|
BlockEntityAPI<?,?> |
createBlockEntity(WorldAPI<?> world,
BlockPosAPI<?> pos,
BlockStateAPI<?> state) |
BlockStateAPI<?> |
getDefaultState(BlockStateAPI<?> state) |
ActionResult |
getUseResult(TILItemUseContext ctx) |
boolean |
hasStateTransformer() |
boolean |
hasUseResult() |
boolean |
isBlockEntity() |
public BlockProperties(MaterialAPI<?> material, MaterialColorAPI<?> materialColor, java.util.Map<java.lang.String,java.lang.Integer> effectiveTools, ResourceLocationAPI<?> registryName, @Nullable @Nullable java.util.function.Function<BlockStateAPI<?>,BlockStateAPI<?>> stateTransformer, @Nullable @Nullable java.util.function.Function<TILItemUseContext,ActionResult> useFunc, @Nullable @Nullable BlockBuilderAPI.BlockEntityCreator blockEntityCreator)
public BlockEntityAPI<?,?> createBlockEntity(WorldAPI<?> world, BlockPosAPI<?> pos, BlockStateAPI<?> state)
public BlockStateAPI<?> getDefaultState(BlockStateAPI<?> state)
public ActionResult getUseResult(TILItemUseContext ctx)
public boolean hasStateTransformer()
public boolean hasUseResult()
public boolean isBlockEntity()