1using System.Globalization;
53 for (
int i = 0; i < 64; i++) {
58 color.A =
byte.MaxValue;
72 for (
int j = 0; j < 2; j++) {
73 float num3 = 0.5f + j * 0.5f;
87 for (
int k = 0; k < 2; k++) {
134 return string.Format(
147 for (
int altitude = 0; altitude < 2; altitude = num) {
148 for (
int flickering = 0; flickering < 2; flickering = num) {
149 for (
int shape = 0; shape < 8; shape = num) {
157 num = flickering + 1;
170 for (
int altitude = 0; altitude < 2; altitude = num) {
171 for (
int flickering = 0; flickering < 2; flickering = num) {
172 for (
int color = 0; color < 8; color = num) {
182 RequiredHeatLevel = 0f,
225 if (flickering == 0) {
229 if (flickering == 1) {
243 craftingRecipe.
Ingredients[4] = $
"paintbucket:{(color != 7 ? color : 10).ToString(CultureInfo.InvariantCulture)}";
244 yield
return craftingRecipe;
247 num = flickering + 1;
262 public static int SetAltitude(
int data,
int altitude) => (data & -9) | ((altitude & 1) << 3);
266 public static int SetFlickering(
int data,
bool flickering) => (data & -17) | ((flickering ? 1 : 0) << 4);
268 public static int GetColor(
int data) => (data >> 5) & 7;
270 public static int SetColor(
int data,
int color) => (data & -225) | ((color & 7) << 5);
ModelMesh FindMesh(string name, bool throwIfNotFound=true)
ReadOnlyList< ModelMeshPart > MeshParts
static Matrix GetBoneAbsoluteTransform(ModelBone modelBone)
static void DrawMeshBlock(PrimitivesRenderer3D primitivesRenderer, BlockMesh blockMesh, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static object Get(Type type, string name)
static int SetFlickering(int data, bool flickering)
static bool GetFlickering(int data)
static Shape GetShape(int data)
static int SetColor(int data, int color)
BlockMesh[] m_finsBlockMeshes
static readonly Color[] FireworksColors
BlockMesh[] m_bodyBlockMeshes
override IEnumerable< CraftingRecipe > GetProceduralCraftingRecipes()
override string GetDisplayName(SubsystemTerrain subsystemTerrain, int value)
static int GetAltitude(int data)
override void Initialize()
BlockMesh[] m_headBlockMeshes
static int SetAltitude(int data, int altitude)
static int GetColor(int data)
static readonly string[] HeadNames
static int SetShape(int data, Shape shape)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
override IEnumerable< int > GetCreativeValues()
static string GetFireworks(string name, string prop)
static int MakeBlockValue(int contents)
static int ExtractData(int value)
static Matrix CreateTranslation(float x, float y, float z)
static Matrix CreateScale(float scale)