Remove some unused code (#1521)

This commit is contained in:
altrisi authored and GitHub committed 2022-08-09 16:21:01 +02:00
1 parent 94a729bae6
commit 1734930f7e
8 files changed
+2 -69

No files matched your search

@@ -11,7 +11,6 @@ import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.Random;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Holder;
@@ -60,7 +59,6 @@ import net.minecraft.world.level.levelgen.structure.structures.JigsawStructure;
public class FeatureGenerator
{
public static final Object boo = new Object();
synchronized public static Boolean plop(String featureName, ServerLevel world, BlockPos pos)
{
Thing custom = featureMap.get(featureName);
@@ -170,13 +168,6 @@ public class FeatureGenerator
return (w, p) -> plopAnywhere(structure, w, p, w.getChunkSource().getGenerator(), wireOnly);
}
public static Boolean spawn(String name, ServerLevel world, BlockPos pos)
{
if (featureMap.containsKey(name))
return featureMap.get(name).plop(world, pos);
return null;
}
private static Structure getDefaultFeature(StructureType<?> structure, ServerLevel world, BlockPos pos)
{
// would be nice to have a way to grab structures of this type for position
@@ -345,8 +336,6 @@ public class FeatureGenerator
public static boolean plopAnywhere(Structure structure, ServerLevel world, BlockPos pos, ChunkGenerator generator, boolean wireOnly)
{
if (world.isClientSide())
return false;
CarpetSettings.skipGenerationChecks.set(true);
try
{
@@ -1,12 +0,0 @@
package carpet.helpers;
import net.minecraft.core.BlockPos;
public class ThrowableSuppression extends RuntimeException{
public final BlockPos pos;
public ThrowableSuppression(String message, BlockPos pos) {
super(message);
this.pos = pos;
}
}