-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGeoClient.java
50 lines (39 loc) · 1.54 KB
/
GeoClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.GeoStrata;
import net.minecraft.client.audio.SoundCategory;
import net.minecraft.item.Item;
import net.minecraft.world.World;
import net.minecraftforge.client.MinecraftForgeClient;
import Reika.DragonAPI.Libraries.ReikaRegistryHelper;
import Reika.GeoStrata.Registry.GeoBlocks;
import Reika.GeoStrata.Registry.GeoISBRH;
import Reika.GeoStrata.Rendering.StairItemRenderer;
import cpw.mods.fml.client.FMLClientHandler;
public class GeoClient extends GeoCommon {
private static final StairItemRenderer stair = new StairItemRenderer();
@Override
public void registerSounds() {
iceWormTheme.setSoundCategory(SoundCategory.MASTER);
sounds.register();
}
@Override
public void registerRenderers() {
ReikaRegistryHelper.instantiateAndRegisterISBRHs(GeoStrata.instance, GeoISBRH.values());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(GeoBlocks.SLAB.getBlockInstance()), stair);
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(GeoBlocks.STAIR.getBlockInstance()), stair);
}
// Override any other methods that need to be handled differently client side.
@Override
public World getClientWorld()
{
return FMLClientHandler.instance().getClient().theWorld;
}
}