示例#1
0
 public static ItemInventory GetInstance(BlockData.Items itemType)
 {
     return GetInstance((short)itemType);
 }
示例#2
0
 public bool IsInteractive(BlockData.Blocks blockType)
 {
     return _interactiveBlocks.ContainsKey((byte)blockType);
 }
示例#3
0
 public static ItemInventory GetInstance(BlockData.Blocks blockType)
 {
     return GetInstance((short)blockType);
 }
示例#4
0
 public short BurnEfficiency(BlockData.Blocks blockType)
 {
     short burnEfficiency;
     _blocksBurnEfficiency.TryGetValue((byte)blockType, out burnEfficiency);
     return burnEfficiency;
 }
示例#5
0
 public bool IsWaterProof(BlockData.Blocks blockType)
 {
     return _waterProofBlocks.ContainsKey((byte)blockType);
 }
示例#6
0
 public byte Luminance(BlockData.Blocks blockType)
 {
     byte luminance;
     _blocksLuminance.TryGetValue((byte)blockType, out luminance);
     return luminance;
 }
示例#7
0
 public bool IsIgnitable(BlockData.Blocks blockType)
 {
     short burnEfficiency;
     _blocksBurnEfficiency.TryGetValue((byte)blockType, out burnEfficiency);
     return (burnEfficiency > 0);
 }
示例#8
0
 public bool IsOpaque(BlockData.Blocks blockType)
 {
     byte opacity;
     _blocksOpacity.TryGetValue((byte)blockType, out opacity);
     return (opacity == 0xF);
 }
示例#9
0
 public byte Opacity(BlockData.Blocks blockType)
 {
     byte opacity;
     _blocksOpacity.TryGetValue((byte)blockType, out opacity);
     return opacity;
 }
示例#10
0
 public bool IsSolid(BlockData.Blocks blockType)
 {
     return _solidBlocks.ContainsKey((byte)blockType);
 }
示例#11
0
 public bool IsSingleHit(BlockData.Blocks blockType)
 {
     return _singleHitBlocks.ContainsKey((byte)blockType);
 }
示例#12
0
 public bool IsLiquid(BlockData.Blocks blockType)
 {
     return _liquidBlocks.ContainsKey((byte)blockType);
 }
示例#13
0
 public bool IsAir(BlockData.Blocks blockType)
 {
     return _airBlocks.ContainsKey((byte)blockType);
 }
示例#14
0
 public bool IsPlowed(BlockData.Blocks blockType)
 {
     return _plowedBlocks.ContainsKey((byte)blockType);
 }
示例#15
0
 public bool IsFertile(BlockData.Blocks blockType)
 {
     return _fertileBlocks.ContainsKey((byte)blockType);
 }
示例#16
0
 public bool IsGrowable(BlockData.Blocks blockType)
 {
     return _growableBlocks.ContainsKey((byte)blockType);
 }