File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
forge/src/main/java/cc/tweaked_programs/cccbridge Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 5
5
import net .minecraft .client .gui .screens .Screen ;
6
6
import net .minecraftforge .api .distmarker .Dist ;
7
7
import net .minecraftforge .api .distmarker .OnlyIn ;
8
+ import net .minecraftforge .fml .loading .FMLPaths ;
8
9
import org .jetbrains .annotations .Nullable ;
9
10
10
11
import java .io .*;
11
12
import java .util .Properties ;
12
13
13
14
@ OnlyIn (Dist .CLIENT )
14
15
public class CCConfig {
16
+ public static final CCConfig CONFIG = new CCConfig (
17
+ FMLPaths .CONFIGDIR .get ().toString ()
18
+ );
19
+
15
20
private final Properties properties ;
16
21
public String config_dir ;
17
22
Original file line number Diff line number Diff line change 7
7
8
8
import java .util .Random ;
9
9
10
+ import static cc .tweaked_programs .cccbridge .client .CCConfig .CONFIG ;
10
11
import static cc .tweaked_programs .cccbridge .common .minecraft .block .RedRouterBlock .FACE_AMOUNT ;
11
12
12
13
public class Randomness {
13
14
private static final Random random = new Random ();
14
15
15
16
@ OnlyIn (Dist .CLIENT )
16
17
public static int lightFlickering () {
17
- if (CCCBridge . CONFIG .FLICKERING )
18
+ if (CONFIG .FLICKERING )
18
19
return ((int )(LightTexture .FULL_BRIGHT - (Math .random ()*35 ) - (random .nextInt (0 ,45 ) == 1 ? 50 : 0 )));
19
20
else
20
21
return LightTexture .FULL_BRIGHT ;
Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ public class CCCBridge {
26
26
public static final String MOD_ID = "cccbridge" ;
27
27
public static final Logger LOGGER = LoggerFactory .getLogger (MOD_ID );
28
28
29
- @ OnlyIn (Dist .CLIENT )
30
- public static final CCConfig CONFIG = new CCConfig (
31
- FMLPaths .CONFIGDIR .get ().toString ()
32
- );
33
-
34
29
public CCCBridge () {
35
30
// Minecraft stuff
36
31
CCCRegistries .register ();
@@ -43,7 +38,7 @@ public static void complete(FMLLoadCompleteEvent event) {
43
38
44
39
@ SubscribeEvent
45
40
public static void registerRenderers (EntityRenderersEvent .RegisterRenderers event ) {
46
- event .registerBlockEntityRenderer (( BlockEntityType < RedRouterBlockEntity >) CCCRegistries .REDROUTER_BLOCK_ENTITY .get (), RedRouterBlockEntityRenderer ::new );
47
- event .registerBlockEntityRenderer (( BlockEntityType < AnimatronicBlockEntity >) CCCRegistries .ANIMATRONIC_BLOCK_ENTITY .get (), AnimatronicBlockEntityRenderer ::new );
41
+ event .registerBlockEntityRenderer (CCCRegistries .REDROUTER_BLOCK_ENTITY .get (), RedRouterBlockEntityRenderer ::new );
42
+ event .registerBlockEntityRenderer (CCCRegistries .ANIMATRONIC_BLOCK_ENTITY .get (), AnimatronicBlockEntityRenderer ::new );
48
43
}
49
44
}
You can’t perform that action at this time.
0 commit comments