158 if (enumValue > 15) {
159 throw new InvalidOperationException(
"Too many arrow types.");
166 model.FindMesh(
m_tipNames[enumValue]).MeshParts[0],
266 || arrowType >= Enum.GetValues<
ArrowType>().Length) {
void Initialize(ModelData modelData, bool keepSourceVertexDataInTags)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
override IEnumerable< int > GetCreativeValues()
static string[] m_shaftNames
override float GetExplosionPressure(int value)
static float[] m_explosionPressures
static float[] m_iconViewScales
static int SetArrowType(int data, ArrowType arrowType)
static int[] m_stabilizerTextureSlots
override void Initialize()
static int[] m_tipTextureSlots
static string[] m_stabilizerNames
override string GetDisplayName(SubsystemTerrain subsystemTerrain, int value)
static int[] m_shaftTextureSlots
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
override float GetIconViewScale(int value, DrawBlockEnvironmentData environmentData)
static ArrowType GetArrowType(int data)
List< BlockMesh > m_standaloneBlockMeshes
static string[] m_tipNames
override float GetProjectilePower(int value)
static float[] m_weaponPowers
virtual void TransformTextureCoordinates(Matrix matrix, int facesMask=-1)
static Matrix GetBoneAbsoluteTransform(ModelBone modelBone)
virtual void AppendBlockMesh(BlockMesh blockMesh)
virtual void AppendModelMeshPart(ModelMeshPart meshPart, Matrix matrix, bool makeEmissive, bool flipWindingOrder, bool doubleSided, bool flipNormals, Color color)
static void DrawMeshBlock(PrimitivesRenderer3D primitivesRenderer, BlockMesh blockMesh, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static object Get(Type type, string name)
static IList< int > GetEnumValues(Type type)
static string Get(string className, int key)
获取在当前语言类名键对应的字符串
static int MakeBlockValue(int contents)
static int ExtractData(int value)
static Matrix CreateTranslation(float x, float y, float z)