Class TeleportPosition
java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.TeleportPosition
- All Implemented Interfaces:
ISaveData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
net.minecraft.core.BlockPos
void
readFromNBT
(net.minecraft.nbt.CompoundTag nbt) void
store
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, double posX, double posY, double posZ, float rotationYaw, float rotationPitch) void
teleport
(net.minecraft.server.level.ServerPlayer player) void
writeToNBT
(net.minecraft.nbt.CompoundTag nbt)
-
Constructor Details
-
TeleportPosition
public TeleportPosition()
-
-
Method Details
-
getPosition
public net.minecraft.core.BlockPos getPosition() -
getDimension
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension() -
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
writeToNBT
in interfaceISaveData
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
readFromNBT
in interfaceISaveData
-
store
public void store(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, double posX, double posY, double posZ, float rotationYaw, float rotationPitch) -
teleport
public void teleport(net.minecraft.server.level.ServerPlayer player)
-