@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; }
@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; }
@Override public void resetLightLevel(int id, short data) { if (originalLight.containsKey(id)) { setLightLevel(id, data, originalLight.get(id)); } }
@Override public void resetOpacity(int id, short data) { if (originalOpacity.containsKey(id)) { setOpaque(id, data, originalOpacity.get(id) != 0); } }