public class DimensionRestriction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static DimensionRestriction |
END |
static DimensionRestriction |
NETHER |
static DimensionRestriction |
NONE |
static DimensionRestriction |
OVERWORLD |
| Constructor and Description |
|---|
DimensionRestriction(net.minecraft.util.RegistryKey<net.minecraft.world.World> type) |
DimensionRestriction(Restriction.Type type,
net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDimensionName() |
int |
hashCode() |
java.lang.String |
toString() |
public static final DimensionRestriction OVERWORLD
public static final DimensionRestriction NETHER
public static final DimensionRestriction END
public static final DimensionRestriction NONE
public DimensionRestriction(net.minecraft.util.RegistryKey<net.minecraft.world.World> type)
public DimensionRestriction(Restriction.Type type, net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getDimensionName()