Class BlockMapping
java.lang.Object
org.geysermc.geyser.registry.type.BlockMapping
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanintThe index of this collision in collision.jsonfloatintThe block ID shared between all different block states of this block.Get the item a Java client would receive when pressing the Pick Block key on a specific Java block state.inthashCode()booleanbooleanbooleantoString()
-
Field Details
-
AIR
-
-
Method Details
-
getCleanJavaIdentifier
- Returns:
- the identifier without the additional block states
-
getItemIdentifier
- Returns:
- the corresponding Java identifier for this item
-
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
-
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
-
isBlockEntity
public boolean isBlockEntity() -
isNonVanilla
public boolean isNonVanilla() -
equals
-
hashCode
public int hashCode() -
toString
-