diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-04-22 14:31:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-04-22 14:31:54 +0300 |
| commit | b67ac617dc9c5f43b911158a281c3c61ced5ea5a (patch) | |
| tree | 649b4553f8b2e673b0c4b12e470feb7e7628de8e /ihl/ClientProxy.java | |
| parent | aa42aedecd2d2842351088085e8fd9d69ec79565 (diff) | |
NEI titles translation
Diffstat (limited to 'ihl/ClientProxy.java')
| -rw-r--r-- | ihl/ClientProxy.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/ihl/ClientProxy.java b/ihl/ClientProxy.java index b257264..2f58e9c 100644 --- a/ihl/ClientProxy.java +++ b/ihl/ClientProxy.java @@ -12,16 +12,8 @@ import ihl.crop_harvestors.BlobEntityFX.FluidType; import ihl.crop_harvestors.BlobRenderFX;
import ihl.crop_harvestors.SackRender;
import ihl.crop_harvestors.SackTileEntity;
-import ihl.enviroment.LightBulbModel;
-import ihl.enviroment.LightBulbRender;
-import ihl.enviroment.LightBulbTileEntity;
-import ihl.enviroment.LightHandler;
-import ihl.enviroment.LightSource;
import ihl.enviroment.MirrorRender;
import ihl.enviroment.MirrorTileEntity;
-import ihl.enviroment.SpotlightModel;
-import ihl.enviroment.SpotlightRender;
-import ihl.enviroment.SpotlightTileEntity;
import ihl.explosion.ExplosionEntityFX;
import ihl.explosion.ExplosionRenderFX;
import ihl.explosion.IHLEntityFallingPile;
@@ -132,28 +124,18 @@ public class ClientProxy extends ServerProxy { public IHLRenderUtils renderUtils;
public Map<MachineType, Integer> sharedBlockRenders = new HashMap<MachineType, Integer>();
public Map<Class<? extends TileEntity>, ISelectionBoxSpecialRenderer> selectionBoxSpecialRendererRegistry = new HashMap<Class<? extends TileEntity>, ISelectionBoxSpecialRenderer>();
- public LightHandler lightHandler;
public ClientProxy() {
}
- public LightHandler getLightHandler() {
-
- return this.lightHandler;
- }
-
@Override
public void load() throws ParserConfigurationException {
- if (lightHandler == null) {
- lightHandler = new LightHandler();
- }
if (channel == null) {
channel = NetworkRegistry.INSTANCE.newEventDrivenChannel(IHLModInfo.MODID);
channel.register(this);
}
this.renderUtils = new IHLRenderUtils();
MinecraftForge.EVENT_BUS.register(this.renderUtils);
- TileEntityRendererDispatcher.instance = new TileEntityRendererDispatcherExt();
registerBlockHandler(new ImpregnatingMachineBlockRender(), MachineType.BronzeTub);
registerBlockHandler(new RefluxCondenserBlockRender(), MachineType.RefluxCondenser);
registerBlockHandler(new RectifierTransformerUnitBlockRender(), MachineType.RectifierTransformerUnit);
@@ -217,8 +199,6 @@ public class ClientProxy extends ServerProxy { if (loadMirrorRender && IHLMod.config.mirrorReflectionRange > 0) {
ClientRegistry.bindTileEntitySpecialRenderer(MirrorTileEntity.class, new MirrorRender());
}
- ClientRegistry.bindTileEntitySpecialRenderer(LightBulbTileEntity.class, new LightBulbRender());
- ClientRegistry.bindTileEntitySpecialRenderer(SpotlightTileEntity.class, new SpotlightRender());
selectionBoxSpecialRendererRegistry.put(AnchorTileEntity.class, new CableHolderSelectionBoxSpecialRenderer());
selectionBoxSpecialRendererRegistry.put(RectifierTransformerUnitTileEntity.class,
new RectifierTransformerUnitSelectionBoxSpecialRenderer());
@@ -291,13 +271,6 @@ public class ClientProxy extends ServerProxy { new BlockItemRender(new ElectrolysisBathModel(),
new ResourceLocation(IHLModInfo.MODID + ":textures/blocks/electrolysisBath.png"), 0, 0, 0.0F,
0.0F));
- MinecraftForgeClient.registerItemRenderer(IHLUtils.getThisModItem("lightBulb"),
- new BlockItemRender(new LightBulbModel(),
- new ResourceLocation(IHLModInfo.MODID + ":textures/blocks/lightBulb.png"), 0, 1, 0.0F, 0.0F,
- true));
- MinecraftForgeClient.registerItemRenderer(IHLUtils.getThisModItem("spotlight"),
- new BlockItemRender(new SpotlightModel(),
- new ResourceLocation(IHLModInfo.MODID + ":textures/blocks/spotlight.png"), 0, 1, 0.0F, 0.0F));
MinecraftForgeClient.registerItemRenderer(IHLTool.instance, new IHLToolRenderer());
MinecraftForgeClient.registerItemRenderer(FlexibleCableItem.instance, new FlexibleCableItemRender());
RenderingRegistry.registerEntityRenderingHandler(LostHeadEntity.class, new LostHeadRender());
@@ -433,26 +406,6 @@ public class ClientProxy extends ServerProxy { float pitch = byteBufInputStream.readFloat();
this.playSound(world, soundId, x, y, z, volume, pitch);
break;
- case 4:
- posX = byteBufInputStream.readInt();
- posY = byteBufInputStream.readInt();
- posZ = byteBufInputStream.readInt();
- for (LightSource lightSource : ((ClientProxy) IHLMod.proxy).getLightHandler().lightSources) {
- if (lightSource.isBlockIlluminated(posX, posY, posZ)) {
- lightSource.provideLight(world, posX, posY, posZ);
- }
- }
- break;
- case 5:
- posX = byteBufInputStream.readInt();
- posY = byteBufInputStream.readInt();
- posZ = byteBufInputStream.readInt();
- for (LightSource lightSource : ((ClientProxy) IHLMod.proxy).getLightHandler().lightSources) {
- if (lightSource.isBlockIlluminated(posX, posY, posZ)) {
- lightSource.castShadow(world, posX, posY, posZ);
- }
- }
- break;
}
byteBufInputStream.close();
}
|
