Class GeyserMappingItem
java.lang.Object
org.geysermc.geyser.registry.type.GeyserMappingItem
Represents Geyser's own serialized item information before being processed per-version
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserMappingItem(String bedrockIdentifier, int bedrockData, Integer firstBlockRuntimeId, Integer lastBlockRuntimeId, boolean entityPlacer, int fuelDuration) Creates a newGeyserMappingIteminstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintBurn duration in Java ticks.inthashCode()booleantoString()withBedrockData(int bedrockData) withBedrockIdentifier(String bedrockIdentifier) withEntityPlacer(boolean entityPlacer) withFirstBlockRuntimeId(Integer firstBlockRuntimeId) withFuelDuration(int fuelDuration) Burn duration in Java ticks.withLastBlockRuntimeId(Integer lastBlockRuntimeId)
-
Constructor Details
-
GeyserMappingItem
public GeyserMappingItem() -
GeyserMappingItem
public GeyserMappingItem(String bedrockIdentifier, int bedrockData, Integer firstBlockRuntimeId, Integer lastBlockRuntimeId, boolean entityPlacer, int fuelDuration) Creates a newGeyserMappingIteminstance.- Parameters:
bedrockIdentifier-bedrockData-firstBlockRuntimeId-lastBlockRuntimeId-entityPlacer-fuelDuration- Burn duration in Java ticks.
-
-
Method Details
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getBedrockIdentifier
-
getBedrockData
public int getBedrockData() -
getFirstBlockRuntimeId
-
getLastBlockRuntimeId
-
isEntityPlacer
public boolean isEntityPlacer() -
getFuelDuration
public int getFuelDuration()Burn duration in Java ticks. -
withBedrockIdentifier
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBedrockData
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirstBlockRuntimeId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLastBlockRuntimeId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEntityPlacer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFuelDuration
Burn duration in Java ticks.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-