Interface CustomBlockData
- All Known Subinterfaces:
NonVanillaCustomBlockData
public interface CustomBlockData
This class is used to store data for a custom block.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets a builder for a custom block statestatic CustomBlockData.Builderbuilder()Create a Builder for CustomBlockData@Nullable CustomBlockComponentsGets the components of the custom block@Nullable CreativeCategoryGets the block's creative category, or tab id.@Nullable StringGets the block's creative group.Gets the custom block's default block stateGets the identifier of the custom blockbooleanGets if the custom block is included in the creative inventoryname()Gets the name of the custom blockGets the list of the custom block's permutationsGets the custom block's map of block property names to CustomBlockProperty objects
-
Method Details
-
name
String name()Gets the name of the custom block- Returns:
- The name of the custom block.
-
identifier
String identifier()Gets the identifier of the custom block- Returns:
- The identifier of the custom block.
-
includedInCreativeInventory
boolean includedInCreativeInventory()Gets if the custom block is included in the creative inventory- Returns:
- If the custom block is included in the creative inventory.
-
creativeCategory
@Nullable CreativeCategory creativeCategory()Gets the block's creative category, or tab id.- Returns:
- the block's creative category
-
creativeGroup
@Nullable String creativeGroup()Gets the block's creative group.- Returns:
- the block's creative group
-
components
@Nullable CustomBlockComponents components()Gets the components of the custom block- Returns:
- The components of the custom block.
-
properties
Map<String,CustomBlockProperty<?>> properties()Gets the custom block's map of block property names to CustomBlockProperty objects- Returns:
- The custom block's map of block property names to CustomBlockProperty objects.
-
permutations
List<CustomBlockPermutation> permutations()Gets the list of the custom block's permutations- Returns:
- The permutations of the custom block.
-
defaultBlockState
CustomBlockState defaultBlockState()Gets the custom block's default block state- Returns:
- The default block state of the custom block.
-
blockStateBuilder
CustomBlockState.Builder blockStateBuilder()Gets a builder for a custom block state- Returns:
- The builder for a custom block state.
-
builder
Create a Builder for CustomBlockData- Returns:
- A CustomBlockData Builder
-