public class StructureRef
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
static java.util.Collection<StructureRef> |
getRegisteredStructures() |
static @Nullable StructureRef |
getStructure(net.minecraft.util.ResourceLocation id) |
static @Nullable StructureRef |
getStructureAt(net.minecraft.world.WorldServer world,
net.minecraft.util.math.BlockPos pos) |
boolean |
isPosInside(net.minecraft.world.WorldServer world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isRegistered(StructureRef ref) |
static void |
register(net.minecraft.util.ResourceLocation id,
java.lang.String name) |
static void |
register(net.minecraft.util.ResourceLocation id,
java.lang.String name,
java.util.function.BiFunction<net.minecraft.world.WorldServer,net.minecraft.util.math.BlockPos,java.lang.Boolean> posCheck) |
public static java.util.Collection<StructureRef> getRegisteredStructures()
@Nullable public static @Nullable StructureRef getStructure(net.minecraft.util.ResourceLocation id)
@Nullable public static @Nullable StructureRef getStructureAt(net.minecraft.world.WorldServer world, net.minecraft.util.math.BlockPos pos)
public static boolean isRegistered(StructureRef ref)
public static void register(net.minecraft.util.ResourceLocation id,
java.lang.String name)
public static void register(net.minecraft.util.ResourceLocation id,
java.lang.String name,
java.util.function.BiFunction<net.minecraft.world.WorldServer,net.minecraft.util.math.BlockPos,java.lang.Boolean> posCheck)
public boolean isPosInside(net.minecraft.world.WorldServer world,
net.minecraft.util.math.BlockPos pos)
public boolean equals(java.lang.Object other)
equals in class java.lang.Object