Class TeleportPosition

java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.TeleportPosition
All Implemented Interfaces:
ISaveData

public class TeleportPosition extends Object implements ISaveData
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface ISaveData
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      readFromNBT in interface ISaveData
    • 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)