public void SetType(VoxelType type) { TypeDef = VoxelWorld.Inst.VoxelTypeDefs[type]; Health = TypeDef.MaxHealth; ParentChunk.MakeDirty(true); }