Port recent changes

This commit is contained in:
simibubi 2020-11-30 18:54:33 +01:00
parent 2888ba9f39
commit 4ad52b6cc7
5 changed files with 76 additions and 76 deletions

View file

@ -60,9 +60,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "true", "north": "true",
"up": "true", "up": "true",
"down": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -71,9 +71,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "false", "north": "false",
"up": "true", "up": "true",
"down": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -82,9 +82,9 @@
}, },
{ {
"when": { "when": {
"down": "true",
"north": "true", "north": "true",
"up": "false", "up": "false",
"down": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -93,9 +93,9 @@
}, },
{ {
"when": { "when": {
"down": "true",
"north": "false", "north": "false",
"up": "false", "up": "false",
"down": "true",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -104,9 +104,9 @@
}, },
{ {
"when": { "when": {
"down": "true",
"north": "false", "north": "false",
"up": "true", "up": "true",
"down": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -115,9 +115,9 @@
}, },
{ {
"when": { "when": {
"north": "false",
"up": "true",
"down": "false", "down": "false",
"north": "false",
"up": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -126,9 +126,9 @@
}, },
{ {
"when": { "when": {
"down": "true",
"north": "false", "north": "false",
"up": "false", "up": "false",
"down": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -137,9 +137,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "true", "north": "true",
"up": "false", "up": "false",
"down": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -148,9 +148,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "true", "north": "true",
"up": "false", "up": "false",
"down": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -159,9 +159,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "false", "north": "false",
"up": "false", "up": "false",
"down": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -170,9 +170,9 @@
}, },
{ {
"when": { "when": {
"down": "false",
"north": "false", "north": "false",
"up": "false", "up": "false",
"down": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -182,8 +182,8 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"east": "false",
"north": "false", "north": "false",
"east": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -193,8 +193,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "true",
"north": "false", "north": "false",
"east": "true",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -204,8 +204,8 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"east": "false",
"north": "true", "north": "true",
"east": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -215,8 +215,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "true",
"north": "true", "north": "true",
"east": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -226,8 +226,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "false",
"north": "true", "north": "true",
"east": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -237,8 +237,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "false",
"north": "false", "north": "false",
"east": "false",
"south": "true" "south": "true"
}, },
"apply": { "apply": {
@ -248,8 +248,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "false",
"north": "true", "north": "true",
"east": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -259,8 +259,8 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"east": "true",
"north": "false", "north": "false",
"east": "true",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -270,8 +270,8 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"east": "false",
"north": "false", "north": "false",
"east": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -281,8 +281,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"north": "false",
"east": "true", "east": "true",
"north": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -292,8 +292,8 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"east": "false",
"north": "false", "north": "false",
"east": "false",
"south": "false" "south": "false"
}, },
"apply": { "apply": {
@ -303,9 +303,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "true",
"east": "true", "east": "true",
"down": "false", "down": "false"
"up": "true"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/lu_z" "model": "create:block/fluid_pipe/lu_z"
@ -314,9 +314,9 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"up": "true",
"east": "false", "east": "false",
"down": "false", "down": "false"
"up": "true"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/ru_z" "model": "create:block/fluid_pipe/ru_z"
@ -325,9 +325,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "false",
"east": "true", "east": "true",
"down": "true", "down": "true"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/ld_z" "model": "create:block/fluid_pipe/ld_z"
@ -336,9 +336,9 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"up": "false",
"east": "false", "east": "false",
"down": "true", "down": "true"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/rd_z" "model": "create:block/fluid_pipe/rd_z"
@ -347,9 +347,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "true",
"east": "false", "east": "false",
"down": "true", "down": "true"
"up": "true"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/ud_z" "model": "create:block/fluid_pipe/ud_z"
@ -358,9 +358,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "true",
"east": "false", "east": "false",
"down": "false", "down": "false"
"up": "true"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/ud_z" "model": "create:block/fluid_pipe/ud_z"
@ -369,9 +369,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "false",
"east": "false", "east": "false",
"down": "true", "down": "true"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/ud_z" "model": "create:block/fluid_pipe/ud_z"
@ -380,9 +380,9 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"up": "false",
"east": "true", "east": "true",
"down": "false", "down": "false"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/lr_z" "model": "create:block/fluid_pipe/lr_z"
@ -391,9 +391,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "false",
"east": "true", "east": "true",
"down": "false", "down": "false"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/lr_z" "model": "create:block/fluid_pipe/lr_z"
@ -402,9 +402,9 @@
{ {
"when": { "when": {
"west": "true", "west": "true",
"up": "false",
"east": "false", "east": "false",
"down": "false", "down": "false"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/lr_z" "model": "create:block/fluid_pipe/lr_z"
@ -413,9 +413,9 @@
{ {
"when": { "when": {
"west": "false", "west": "false",
"up": "false",
"east": "false", "east": "false",
"down": "false", "down": "false"
"up": "false"
}, },
"apply": { "apply": {
"model": "create:block/fluid_pipe/none_z" "model": "create:block/fluid_pipe/none_z"

View file

@ -89,8 +89,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "true", "axis": "x",
"axis": "x" "sticky_west": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_x_sticky", "model": "create:block/radial_chassis_side_x_sticky",
@ -99,8 +99,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "true", "axis": "y",
"axis": "y" "sticky_west": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_y_sticky", "model": "create:block/radial_chassis_side_y_sticky",
@ -109,8 +109,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "true", "axis": "z",
"axis": "z" "sticky_west": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_z_sticky", "model": "create:block/radial_chassis_side_z_sticky",
@ -119,8 +119,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "false", "axis": "x",
"axis": "x" "sticky_west": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_x", "model": "create:block/radial_chassis_side_x",
@ -129,8 +129,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "false", "axis": "y",
"axis": "y" "sticky_west": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_y", "model": "create:block/radial_chassis_side_y",
@ -139,8 +139,8 @@
}, },
{ {
"when": { "when": {
"sticky_west": "false", "axis": "z",
"axis": "z" "sticky_west": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_z", "model": "create:block/radial_chassis_side_z",
@ -207,8 +207,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "true", "axis": "x",
"axis": "x" "sticky_east": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_x_sticky", "model": "create:block/radial_chassis_side_x_sticky",
@ -217,8 +217,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "true", "axis": "y",
"axis": "y" "sticky_east": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_y_sticky", "model": "create:block/radial_chassis_side_y_sticky",
@ -227,8 +227,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "true", "axis": "z",
"axis": "z" "sticky_east": "true"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_z_sticky" "model": "create:block/radial_chassis_side_z_sticky"
@ -236,8 +236,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "false", "axis": "x",
"axis": "x" "sticky_east": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_x", "model": "create:block/radial_chassis_side_x",
@ -246,8 +246,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "false", "axis": "y",
"axis": "y" "sticky_east": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_y", "model": "create:block/radial_chassis_side_y",
@ -256,8 +256,8 @@
}, },
{ {
"when": { "when": {
"sticky_east": "false", "axis": "z",
"axis": "z" "sticky_east": "false"
}, },
"apply": { "apply": {
"model": "create:block/radial_chassis_side_z" "model": "create:block/radial_chassis_side_z"

View file

@ -41,7 +41,7 @@ public class AllColorHandlers {
public static IBlockColor getRedstonePower() { public static IBlockColor getRedstonePower() {
return new BlockColor( return new BlockColor(
(state, world, pos, layer) -> RedstoneWireBlock.colorMultiplier(pos != null && world != null ? state.get(BlockStateProperties.POWER_0_15) : 0) (state, world, pos, layer) -> RedstoneWireBlock.getWireColor(pos != null && world != null ? state.get(BlockStateProperties.POWER_0_15) : 0)
); );
} }

View file

@ -7,15 +7,15 @@ import com.tterrag.registrate.providers.RegistrateBlockstateProvider;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.state.IProperty; import net.minecraft.state.Property;
import net.minecraft.state.properties.RailShape; import net.minecraft.state.properties.RailShape;
import net.minecraftforge.client.model.generators.ModelFile; import net.minecraftforge.client.model.generators.ModelFile;
public class ControllerRailGenerator extends SpecialBlockStateGen { public class ControllerRailGenerator extends SpecialBlockStateGen {
@Override @Override
protected IProperty<?>[] getIgnoredProperties() { protected Property<?>[] getIgnoredProperties() {
return new IProperty<?>[] { ControllerRailBlock.POWER }; return new Property<?>[] { ControllerRailBlock.POWER };
} }
@Override @Override

View file

@ -5,15 +5,15 @@ import com.tterrag.registrate.providers.RegistrateBlockstateProvider;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.state.IProperty; import net.minecraft.state.Property;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;
import net.minecraftforge.client.model.generators.ConfiguredModel; import net.minecraftforge.client.model.generators.ConfiguredModel;
import net.minecraftforge.client.model.generators.ModelFile; import net.minecraftforge.client.model.generators.ModelFile;
public abstract class SpecialBlockStateGen { public abstract class SpecialBlockStateGen {
protected IProperty<?>[] getIgnoredProperties() { protected Property<?>[] getIgnoredProperties() {
return new IProperty<?>[0]; return new Property<?>[0];
} }
public final <T extends Block> void generate(DataGenContext<Block, T> ctx, RegistrateBlockstateProvider prov) { public final <T extends Block> void generate(DataGenContext<Block, T> ctx, RegistrateBlockstateProvider prov) {