1using System.Globalization;
7 public static int Index = 251;
11 public const string fName =
"PumpkinSoupBucketBlock";
24 new Color(200, 130, 35)
54 for (
int rot = 0; rot <= 1; rot = num) {
60 craftingRecipe.
Ingredients[0] = $
"pumpkin:{Terrain.ExtractData(value).ToString(CultureInfo.InvariantCulture)}";
62 yield
return craftingRecipe;
ModelMesh FindMesh(string name, bool throwIfNotFound=true)
ReadOnlyList< ModelMeshPart > MeshParts
static float DegToRad(float degrees)
static int SetIsDead(int data, bool isDead)
static int SetSize(int data, int size)
virtual int SetDamage(int value, int damage)
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 string Get(string className, int key)
获取在当前语言类名键对应的字符串
BlockMesh m_standaloneBlockMesh
override void Initialize()
override int GetDamageDestructionValue(int value)
override IEnumerable< CraftingRecipe > GetProceduralCraftingRecipes()
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static int MakeBlockValue(int contents)
static Matrix CreateTranslation(float x, float y, float z)
static Matrix CreateRotationY(float radians)