Merge branch 'master' into 1.15
# Conflicts: # src/main/java/carpet/fakes/StructureFeatureInterface.java # src/main/java/carpet/mixins/PistonBlock_movableTEMixin.java
This commit is contained in:
commit
c995716357
41 files changed
+122
-137
No files matched your search
@@ -36,8 +36,8 @@ public class BlockValue extends Value
|
||||
public static final BlockValue AIR = new BlockValue(Blocks.AIR.getDefaultState(), null, BlockPos.ORIGIN);
|
||||
public static final BlockValue NULL = new BlockValue(null, null, null);
|
||||
private BlockState blockState;
|
||||
private BlockPos pos;
|
||||
private ServerWorld world;
|
||||
private final BlockPos pos;
|
||||
private final ServerWorld world;
|
||||
private CompoundTag data;
|
||||
|
||||
public static BlockValue fromCoords(CarpetContext c, int x, int y, int z)
|
||||
@@ -46,7 +46,7 @@ public class BlockValue extends Value
|
||||
return new BlockValue(null, c.s.getWorld(), pos);
|
||||
}
|
||||
|
||||
private static Map<String, BlockValue> bvCache= new HashMap<>();
|
||||
private static final Map<String, BlockValue> bvCache= new HashMap<>();
|
||||
public static BlockValue fromString(String str)
|
||||
{
|
||||
try
|
||||
@@ -294,8 +294,8 @@ public class BlockValue extends Value
|
||||
|
||||
public static class LocatorResult
|
||||
{
|
||||
public BlockValue block;
|
||||
public int offset;
|
||||
public final BlockValue block;
|
||||
public final int offset;
|
||||
LocatorResult(BlockValue b, int o)
|
||||
{
|
||||
block = b;
|
||||
@@ -306,9 +306,9 @@ public class BlockValue extends Value
|
||||
public static class VectorLocator
|
||||
{
|
||||
public Vec3d vec;
|
||||
public int offset;
|
||||
public double yaw;
|
||||
public double pitch;
|
||||
public final int offset;
|
||||
public final double yaw;
|
||||
public final double pitch;
|
||||
public boolean fromBlock;
|
||||
VectorLocator(Vec3d v, int o)
|
||||
{
|
||||
@@ -358,9 +358,9 @@ public class BlockValue extends Value
|
||||
EASTUP("east-up", 0.0, 0.6, 0.5, Direction.EAST),
|
||||
WESTUP("west-up", 1.0, 0.6, 0.5, Direction.WEST);
|
||||
|
||||
public String name;
|
||||
public Vec3d hitOffset;
|
||||
public Direction facing;
|
||||
public final String name;
|
||||
public final Vec3d hitOffset;
|
||||
public final Direction facing;
|
||||
|
||||
private static final Map<String, SpecificDirection> DIRECTION_MAP = Arrays.stream(values()).collect(Collectors.toMap(SpecificDirection::getName, d -> d));
|
||||
|
||||
|
||||
Reference in new issue
Block a user