Constructor and Description |
---|
TeleportPosition() |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.RegistryKey<net.minecraft.world.World> |
getDimension() |
net.minecraft.util.math.BlockPos |
getPosition() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
store(net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension,
double posX,
double posY,
double posZ,
float rotationYaw,
float rotationPitch) |
void |
teleport(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt) |
public net.minecraft.util.math.BlockPos getPosition()
public net.minecraft.util.RegistryKey<net.minecraft.world.World> getDimension()
public void writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
writeToNBT
in interface ISaveData
public void readFromNBT(net.minecraft.nbt.CompoundNBT nbt)
readFromNBT
in interface ISaveData
public void store(net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension, double posX, double posY, double posZ, float rotationYaw, float rotationPitch)
public void teleport(net.minecraft.entity.player.ServerPlayerEntity player)