Class Block
java.lang.Object
net.buildtheearth.terracore.worldgen.dataset.vector.draw.Block
- All Implemented Interfaces:
DrawFunction
DrawFunction which sets the surface block to a fixed block state.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull net.buildtheearth.terracore.minecraft.BlockState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawOnto(CachedChunkData.Builder data, int x, int z, int weight) Draws a single pixel onto the givenCachedChunkData.Builder.
-
Field Details
-
state
@NonNull protected final @NonNull net.buildtheearth.terracore.minecraft.BlockState state
-
-
Constructor Details
-
Block
public Block(@NonNull @NonNull net.buildtheearth.terracore.minecraft.BlockState state)
-
-
Method Details
-
drawOnto
Description copied from interface:DrawFunctionDraws a single pixel onto the givenCachedChunkData.Builder.- Specified by:
drawOntoin interfaceDrawFunction- Parameters:
data- theCachedChunkData.Builderx- the relative X coordinate of the pixelz- the relative Z coordinate of the pixelweight- the pixel weight
-