Class WarpPlateEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.WarpPlateEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class WarpPlateEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
Created by Jay113355 on 8/12/2020.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WarpPlateEvent(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.Entity
     
    net.minecraft.core.BlockPos
     
    void
    setWarpPosition(net.minecraft.core.BlockPos pos)
    Set the position the entity will teleport to.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.bus.api.ICancellableEvent

    isCanceled, setCanceled
  • Constructor Details

    • WarpPlateEvent

      public WarpPlateEvent(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos)
  • Method Details

    • getEntity

      public net.minecraft.world.entity.Entity getEntity()
      Returns:
      The entity being teleported.
    • getWarpPosition

      public net.minecraft.core.BlockPos getWarpPosition()
      Returns:
      The position the entity will be teleported to.
    • setWarpPosition

      public void setWarpPosition(net.minecraft.core.BlockPos pos)
      Set the position the entity will teleport to.
      Parameters:
      pos - The new position to teleport the entity.