File tree Expand file tree Collapse file tree
src/main/java/top/ctnstudio/futurefood Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package top .ctnstudio .futurefood .client ;
22
33import com .mojang .blaze3d .shaders .FogShape ;
4- import com .mojang .blaze3d .systems .RenderSystem ;
54import com .mojang .blaze3d .vertex .PoseStack ;
65import net .minecraft .client .Camera ;
76import net .minecraft .client .Minecraft ;
87import net .minecraft .client .multiplayer .ClientLevel ;
98import net .minecraft .client .renderer .FogRenderer ;
10- import net .minecraft .client .renderer .FogRenderer .FogMode ;
119import net .minecraft .client .renderer .culling .Frustum ;
1210import net .minecraft .util .Mth ;
13- import net .minecraft .world .effect .MobEffects ;
1411import net .minecraft .world .entity .LivingEntity ;
1512import net .neoforged .api .distmarker .Dist ;
1613import net .neoforged .api .distmarker .OnlyIn ;
1714import net .neoforged .bus .api .SubscribeEvent ;
1815import net .neoforged .fml .common .EventBusSubscriber ;
1916import net .neoforged .neoforge .client .event .RenderLevelStageEvent ;
2017import net .neoforged .neoforge .client .event .ViewportEvent ;
21- import net .neoforged .neoforge .client .event .ViewportEvent .RenderFog ;
2218import top .ctnstudio .futurefood .client .renderer .HighlightLinksRender ;
2319import top .ctnstudio .futurefood .core .FutureFood ;
2420import top .ctnstudio .futurefood .core .init .ModEffect ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public BatteryEntityBlock() {
4444 }
4545
4646 public BatteryEntityBlock (boolean isInfinite ) {
47- this (BlockBehaviour .Properties .of (), isInfinite );
47+ this (BlockBehaviour .Properties .of (). strength ( 0.4f ) , isInfinite );
4848 }
4949
5050 protected BatteryEntityBlock (Properties properties , boolean isInfinite ) {
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ public GluttonyEntityBlock() {
3333
3434 public GluttonyEntityBlock (Properties properties ) {
3535 super (properties
36- .noOcclusion ()
37- .isValidSpawn (ModBlock .argumentNever ())
38- .isRedstoneConductor (ModBlock .never ())
39- .isSuffocating (ModBlock .never ())
40- .isViewBlocking (ModBlock .never ()), ModTileEntity .GLUTTONY );
36+ .noOcclusion ()
37+ .isValidSpawn (ModBlock .argumentNever ())
38+ .isRedstoneConductor (ModBlock .never ())
39+ .isSuffocating (ModBlock .never ())
40+ .isViewBlocking (ModBlock .never ())
41+ .strength (0.4f )
42+ , ModTileEntity .GLUTTONY );
4143 this .registerDefaultState (this .stateDefinition .any ().setValue (ACTIVATE , false ));
4244 }
4345
Original file line number Diff line number Diff line change @@ -38,11 +38,13 @@ public ParticleColliderEntityBlock() {
3838
3939 public ParticleColliderEntityBlock (Properties properties ) {
4040 super (properties
41- .noOcclusion ()
42- .isValidSpawn (ModBlock .argumentNever ())
43- .isRedstoneConductor (ModBlock .never ())
44- .isSuffocating (ModBlock .never ())
45- .isViewBlocking (ModBlock .never ()), ModTileEntity .PARTICLE_COLLIDER );
41+ .noOcclusion ()
42+ .isValidSpawn (ModBlock .argumentNever ())
43+ .isRedstoneConductor (ModBlock .never ())
44+ .isSuffocating (ModBlock .never ())
45+ .isViewBlocking (ModBlock .never ())
46+ .strength (0.4f )
47+ , ModTileEntity .PARTICLE_COLLIDER );
4648 this .registerDefaultState (this .stateDefinition .any ().setValue (ACTIVATE , false ));
4749 }
4850
Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ public QedEntityBlock() {
5151
5252 public QedEntityBlock (Properties properties ) {
5353 super (properties
54- .noOcclusion ()
55- .isValidSpawn (ModBlock .argumentNever ())
56- .isRedstoneConductor (ModBlock .never ())
57- .isSuffocating (ModBlock .never ())
58- .isViewBlocking (ModBlock .never ()), ModTileEntity .QED );
54+ .noOcclusion ()
55+ .isValidSpawn (ModBlock .argumentNever ())
56+ .isRedstoneConductor (ModBlock .never ())
57+ .isSuffocating (ModBlock .never ())
58+ .isViewBlocking (ModBlock .never () )
59+ .strength (0.4f )
60+ , ModTileEntity .QED );
5961 this .registerDefaultState (this .stateDefinition .any ()
6062 .setValue (ACTIVATE , Activate .DEFAULT )
6163 .setValue (LIGHT , Light .DEFAULT )
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ public QerEntityBlock() {
4444
4545 public QerEntityBlock (Properties properties ) {
4646 super (properties
47- .noOcclusion ()
48- .isValidSpawn (ModBlock .argumentNever ())
49- .isRedstoneConductor (ModBlock .never ())
50- .isSuffocating (ModBlock .never ())
51- .isViewBlocking (ModBlock .never ()), ModTileEntity .QER );
47+ .noOcclusion ()
48+ .isValidSpawn (ModBlock .argumentNever ())
49+ .isRedstoneConductor (ModBlock .never ())
50+ .isSuffocating (ModBlock .never ())
51+ .isViewBlocking (ModBlock .never ())
52+ .strength (0.4f )
53+ , ModTileEntity .QER );
5254 this .registerDefaultState (this .stateDefinition .any ()
5355 .setValue (ACTIVATE , Activate .DEFAULT )
5456 .setValue (LIGHT , QedEntityBlock .Light .DEFAULT )
You can’t perform that action at this time.
0 commit comments