Class WarpPlateEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.WarpPlateEvent

public class WarpPlateEvent extends net.minecraftforge.eventbus.api.Event
Created by Jay113355 on 8/12/2020.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • 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 net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

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