Class Component

java.lang.Object
cn.nukkit.block.customblock.data.Component
All Implemented Interfaces:
NBTData

@Since("1.19.60-r1") @PowerNukkitXOnly public class Component extends Object implements NBTData
  • Method Details

    • toCompoundTag

      public CompoundTag toCompoundTag()
      Specified by:
      toCompoundTag in interface NBTData
    • builder

      public static Component.ComponentBuilder builder()
    • getResult

      public CompoundTag getResult()
    • getCollisionBox

      @Nullable public CollisionBox getCollisionBox()
    • getSelectionBox

      @Nullable public SelectionBox getSelectionBox()
    • getCraftingTable

      @Nullable public CraftingTable getCraftingTable()
    • getDestructibleByMining

      @Nullable public Float getDestructibleByMining()
    • getDestructibleByExplosion

      @Nullable public Integer getDestructibleByExplosion()
    • getDisplayName

      @Nullable public String getDisplayName()
    • getLightEmission

      @Nullable public Integer getLightEmission()
    • getLightDampening

      @Nullable public Integer getLightDampening()
    • getFriction

      @Nullable public Float getFriction()
    • getGeometry

      @Nullable public Geometry getGeometry()
    • getMaterialInstances

      @Nullable public Materials getMaterialInstances()
    • getTransformation

      @Nullable public Transformation getTransformation()
    • getUnitCube

      @Nullable public Boolean getUnitCube()
    • getRotation

      @Nullable public Vector3f getRotation()
    • getClientFriction

      @Nullable public Float getClientFriction()