Exemplo n.º 1
0
 @Override
 public void setLightLevel(int id, short data, int level) {
   if (!originalLight.containsKey(id)) {
     originalLight.put(id, getLightLevel(id, data));
   }
   net.minecraft.server.Block.s[id] = level;
 }
Exemplo n.º 2
0
 @Override
 public void setOpaque(int id, short data, boolean opacity) {
   if (!originalOpacity.containsKey(id)) {
     originalOpacity.put(id, isOpaque(id, data) ? 1 : 0);
   }
   net.minecraft.server.Block.o[id] = opacity;
 }
Exemplo n.º 3
0
 @Override
 public void resetLightLevel(int id, short data) {
   if (originalLight.containsKey(id)) {
     setLightLevel(id, data, originalLight.get(id));
   }
 }
Exemplo n.º 4
0
 @Override
 public void resetOpacity(int id, short data) {
   if (originalOpacity.containsKey(id)) {
     setOpaque(id, data, originalOpacity.get(id) != 0);
   }
 }