voxel type work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-14 16:31:43 -04:00
parent dfc2d7dfc5
commit 6b208b5463
4 changed files with 37 additions and 8 deletions

View File

@ -34,17 +34,17 @@
}, },
{ {
"id" : 6, "id" : 6,
"name" : "stone", "name" : "rock_shale",
"texture" : "/Textures/Ground/cliff1_256.png" "texture" : "/Textures/Ground/cliff1_256.png"
}, },
{ {
"id" : 7, "id" : 7,
"name" : "rock", "name" : "rock_gneiss",
"texture" : "/Textures/Ground/rock2_256.png" "texture" : "/Textures/Ground/rock2_256.png"
}, },
{ {
"id" : 8, "id" : 8,
"name" : "rock", "name" : "rock_slate",
"texture" : "/Textures/Ground/rock3_256.png" "texture" : "/Textures/Ground/rock3_256.png"
} }
] ]

View File

@ -1467,6 +1467,7 @@ Transparency support for component decorations
Cloth sack model Cloth sack model
Pickaxe model Pickaxe model
More rock models More rock models
Voxel type work

View File

@ -6,7 +6,10 @@ import java.util.Set;
* A list of all voxel types in game * A list of all voxel types in game
*/ */
public class VoxelData { public class VoxelData {
//The set of all voxel types
/**
* The set of all voxel types
*/
Set<VoxelType> types; Set<VoxelType> types;
/** /**

View File

@ -6,15 +6,32 @@ import java.util.List;
* Data about a particular type of voxel * Data about a particular type of voxel
*/ */
public class VoxelType { public class VoxelType {
//the id of this voxel type
/**
* the id of this voxel type
*/
int id; int id;
//the name of the type
/**
* the name of the type
*/
String name; String name;
//any ambient foliage that can be placed on this voxel type
/**
* any ambient foliage that can be placed on this voxel type
*/
List<String> ambientFoliage; List<String> ambientFoliage;
//the texture for the voxel type
/**
* the texture for the voxel type
*/
String texture; String texture;
/**
* The corresponding item
*/
String correspondingItem;
/** /**
* Gets the id of the voxel type * Gets the id of the voxel type
* @return The id * @return The id
@ -46,4 +63,12 @@ public class VoxelType {
public String getTexture(){ public String getTexture(){
return texture; return texture;
} }
/**
* Gets the corresponding item
* @return The corresponding item
*/
public String getCorrespondingItem(){
return correspondingItem;
}
} }