|
@@ -15,116 +15,161 @@ namespace MineCase.Block
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Stone(StoneType type = StoneType.Stone)
|
|
|
|
|
|
|
+ public static BlockState Stone()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
Id = (uint)BlockId.Stone,
|
|
Id = (uint)BlockId.Stone,
|
|
|
- MetaValue = (uint)type
|
|
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState GrassBlock()
|
|
|
|
|
|
|
+ public static BlockState Granite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.GrassBlock,
|
|
|
|
|
- MetaValue = 0
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Granite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Dirt(DirtType type = DirtType.Dirt)
|
|
|
|
|
|
|
+ public static BlockState PolishedGranite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Dirt,
|
|
|
|
|
- MetaValue = (uint)type
|
|
|
|
|
|
|
+ Id = (uint)BlockId.PolishedGranite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Cobblestone()
|
|
|
|
|
|
|
+ public static BlockState Diorite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Cobblestone,
|
|
|
|
|
- MetaValue = 0
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Diorite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState WoodPlanks(WoodPlankType type = WoodPlankType.Oak)
|
|
|
|
|
|
|
+ public static BlockState PolishedDiorite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.OakPlanks,
|
|
|
|
|
- MetaValue = (uint)type
|
|
|
|
|
|
|
+ Id = (uint)BlockId.PolishedDiorite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Sapling(SaplingsType type = SaplingsType.Oak)
|
|
|
|
|
|
|
+ public static BlockState Andesite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.OakSapling,
|
|
|
|
|
- MetaValue = (uint)type
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Andesite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Bedrock()
|
|
|
|
|
|
|
+ public static BlockState PolishedAndesite()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Bedrock,
|
|
|
|
|
- MetaValue = 0
|
|
|
|
|
|
|
+ Id = (uint)BlockId.PolishedAndesite,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Water(FluidType type = FluidType.FallingFlag)
|
|
|
|
|
|
|
+ public static BlockState GrassBlock(GrassBlockSnowy snowy = GrassBlockSnowy.False)
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Water,
|
|
|
|
|
- MetaValue = (uint)type
|
|
|
|
|
|
|
+ Id = (uint)BlockId.GrassBlock,
|
|
|
|
|
+ MetaValue = (uint)snowy
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- [ObsoleteAttribute]
|
|
|
|
|
- public static BlockState StationaryWater(FluidType type = FluidType.FallingFlag)
|
|
|
|
|
|
|
+ public static BlockState Dirt()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Water,
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Dirt,
|
|
|
|
|
+ MetaValue = 0,
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static BlockState Cobblestone()
|
|
|
|
|
+ {
|
|
|
|
|
+ return new BlockState
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = (uint)BlockId.Cobblestone,
|
|
|
|
|
+ MetaValue = 0
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static BlockState WoodPlanks(WoodPlankType type = WoodPlankType.Oak)
|
|
|
|
|
+ {
|
|
|
|
|
+ return new BlockState
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = (uint)BlockId.OakPlanks,
|
|
|
MetaValue = (uint)type
|
|
MetaValue = (uint)type
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Lava(FluidType type = FluidType.FallingFlag)
|
|
|
|
|
|
|
+ public static BlockState Sapling(SaplingsType type = SaplingsType.Oak)
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Lava,
|
|
|
|
|
|
|
+ Id = (uint)BlockId.OakSapling,
|
|
|
MetaValue = (uint)type
|
|
MetaValue = (uint)type
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- [ObsoleteAttribute]
|
|
|
|
|
- public static BlockState StationaryLava(FluidType type = FluidType.FallingFlag)
|
|
|
|
|
|
|
+ public static BlockState Bedrock()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Lava,
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Bedrock,
|
|
|
MetaValue = 0
|
|
MetaValue = 0
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static BlockState Sand(SandType type = SandType.Sand)
|
|
|
|
|
|
|
+ public static BlockState Water(FluidType type = FluidType.Level0)
|
|
|
|
|
+ {
|
|
|
|
|
+ return new BlockState
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = (uint)BlockId.Water,
|
|
|
|
|
+ MetaValue = (uint)type
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static BlockState Lava(FluidType type = FluidType.Level0)
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|
|
|
{
|
|
{
|
|
|
- Id = (uint)BlockId.Sand,
|
|
|
|
|
|
|
+ Id = (uint)BlockId.Lava,
|
|
|
MetaValue = (uint)type
|
|
MetaValue = (uint)type
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static BlockState Sand(SandType type = SandType.Sand)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (type == SandType.Sand)
|
|
|
|
|
+ {
|
|
|
|
|
+ return new BlockState
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = (uint)BlockId.Sand,
|
|
|
|
|
+ MetaValue = 0
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ return new BlockState
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = (uint)BlockId.RedSand,
|
|
|
|
|
+ MetaValue = 0
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public static BlockState Gravel()
|
|
public static BlockState Gravel()
|
|
|
{
|
|
{
|
|
|
return new BlockState
|
|
return new BlockState
|