Class BlockMapping

java.lang.Object
org.geysermc.geyser.registry.type.BlockMapping

public final class BlockMapping extends Object
  • Field Details

  • Method Details

    • getCleanJavaIdentifier

      public String getCleanJavaIdentifier()
      Returns:
      the identifier without the additional block states
    • getItemIdentifier

      public String getItemIdentifier()
      Returns:
      the corresponding Java identifier for this item
    • getPickItem

      public String getPickItem()
      Get the item a Java client would receive when pressing the Pick Block key on a specific Java block state.
      Returns:
      The Java identifier of the item
    • builder

      public static BlockMapping.BlockMappingBuilder builder()
    • getJavaIdentifier

      public String getJavaIdentifier()
    • getJavaBlockId

      public int getJavaBlockId()
      The block ID shared between all different block states of this block. NOT the runtime ID!
    • getHardness

      public float getHardness()
    • isCanBreakWithHand

      public boolean isCanBreakWithHand()
    • getCollisionIndex

      public int getCollisionIndex()
      The index of this collision in collision.json
    • getPistonBehavior

      public @NonNull PistonBehavior getPistonBehavior()
    • isBlockEntity

      public boolean isBlockEntity()
    • isNonVanilla

      public boolean isNonVanilla()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object