Class DhApiTerrainDataPoint
java.lang.Object
com.seibel.distanthorizons.api.objects.data.DhApiTerrainDataPoint
Holds a single datapoint of terrain data.
- Since:
- API 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IDhApiBiomeWrapperfinal intfinal IDhApiBlockStateWrapperfinal intfinal byte0 = block
1 = 2x2 blocks
2 = 4x4 blocks
4 = chunk (16x16 blocks)
9 = region (512x512 blocks)final intfinal int -
Constructor Summary
ConstructorsConstructorDescriptionDhApiTerrainDataPoint(byte detailLevel, int blockLightLevel, int skyLightLevel, int topYBlockPos, int bottomYBlockPos, IDhApiBlockStateWrapper blockStateWrapper, IDhApiBiomeWrapper biomeWrapper) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic DhApiTerrainDataPointcreate(byte detailLevel, int blockLightLevel, int skyLightLevel, int bottomYBlockPos, int topYBlockPos, IDhApiBlockStateWrapper blockStateWrapper, IDhApiBiomeWrapper biomeWrapper)
-
Field Details
-
detailLevel
public final byte detailLevel0 = block
1 = 2x2 blocks
2 = 4x4 blocks
4 = chunk (16x16 blocks)
9 = region (512x512 blocks)- See Also:
-
blockLightLevel
public final int blockLightLevel -
skyLightLevel
public final int skyLightLevel -
bottomYBlockPos
public final int bottomYBlockPos -
topYBlockPos
public final int topYBlockPos -
blockStateWrapper
-
biomeWrapper
-
-
Constructor Details
-
DhApiTerrainDataPoint
@Deprecated public DhApiTerrainDataPoint(byte detailLevel, int blockLightLevel, int skyLightLevel, int topYBlockPos, int bottomYBlockPos, IDhApiBlockStateWrapper blockStateWrapper, IDhApiBiomeWrapper biomeWrapper) Deprecated.Deprecated due to the topYBlockPos and bottomYBlockPos variables being put in the wrong order. They should have been in bottom -> top order.- See Also:
-
-
Method Details
-
create
public static DhApiTerrainDataPoint create(byte detailLevel, int blockLightLevel, int skyLightLevel, int bottomYBlockPos, int topYBlockPos, IDhApiBlockStateWrapper blockStateWrapper, IDhApiBiomeWrapper biomeWrapper) - Since:
- API 3.0.0
-