Interface CustomBlockComponents
public interface CustomBlockComponents
This class is used to store components for a custom block or custom block permutation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a Builder for CustomBlockComponents@Nullable BoxComponent
Gets the collision box component Equivalent to "minecraft:collision_box"@Nullable Float
Gets the destructible by mining component Equivalent to "minecraft:destructible_by_mining"@Nullable String
Gets the display name component Equivalent to "minecraft:display_name"@Nullable Float
friction()
Gets the friction component Equivalent to "minecraft:friction"@Nullable GeometryComponent
geometry()
Gets the geometry component Equivalent to "minecraft:geometry"@Nullable Integer
Gets the light dampening component Equivalent to "minecraft:light_dampening"@Nullable Integer
Gets the light emission component Equivalent to "minecraft:light_emission"@NonNull Map<String,
MaterialInstance> Gets the material instances component Equivalent to "minecraft:material_instances"boolean
placeAir()
Gets if the block should place only air Equivalent to setting a dummy event to run on "minecraft:on_player_placing"@Nullable List<PlacementConditions>
Gets the placement filter component Equivalent to "minecraft:placement_filter"@Nullable BoxComponent
Gets the selection box component Equivalent to "minecraft:selection_box"tags()
Gets the set of tags Equivalent to "tag:some_tag"@Nullable TransformationComponent
Gets the transformation component Equivalent to "minecraft:transformation"boolean
unitCube()
Deprecated.
-
Method Details
-
selectionBox
@Nullable BoxComponent selectionBox()Gets the selection box component Equivalent to "minecraft:selection_box"- Returns:
- The selection box.
-
collisionBox
@Nullable BoxComponent collisionBox()Gets the collision box component Equivalent to "minecraft:collision_box"- Returns:
- The collision box.
-
displayName
@Nullable String displayName()Gets the display name component Equivalent to "minecraft:display_name"- Returns:
- The display name.
-
geometry
@Nullable GeometryComponent geometry()Gets the geometry component Equivalent to "minecraft:geometry"- Returns:
- The geometry.
-
materialInstances
@NonNull Map<String,MaterialInstance> materialInstances()Gets the material instances component Equivalent to "minecraft:material_instances"- Returns:
- The material instances.
-
placementFilter
@Nullable List<PlacementConditions> placementFilter()Gets the placement filter component Equivalent to "minecraft:placement_filter"- Returns:
- The placement filter.
-
destructibleByMining
@Nullable Float destructibleByMining()Gets the destructible by mining component Equivalent to "minecraft:destructible_by_mining"- Returns:
- The destructible by mining value.
-
friction
@Nullable Float friction()Gets the friction component Equivalent to "minecraft:friction"- Returns:
- The friction value.
-
lightEmission
@Nullable Integer lightEmission()Gets the light emission component Equivalent to "minecraft:light_emission"- Returns:
- The light emission value.
-
lightDampening
@Nullable Integer lightDampening()Gets the light dampening component Equivalent to "minecraft:light_dampening"- Returns:
- The light dampening value.
-
transformation
@Nullable TransformationComponent transformation()Gets the transformation component Equivalent to "minecraft:transformation"- Returns:
- The transformation.
-
unitCube
Deprecated.Usegeometry()
and compare with `minecraft:geometry.full_block` instead.Gets the unit cube component Equivalent to "minecraft:unit_cube"- Returns:
- The rotation.
-
placeAir
boolean placeAir()Gets if the block should place only air Equivalent to setting a dummy event to run on "minecraft:on_player_placing"- Returns:
- If the block should place only air.
-
tags
Gets the set of tags Equivalent to "tag:some_tag"- Returns:
- The set of tags.
-
builder
Create a Builder for CustomBlockComponents- Returns:
- A CustomBlockComponents Builder
-
geometry()
and compare with `minecraft:geometry.full_block` instead.