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
ConstructorDescriptionWarpPlateEvent
(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionnet.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
-
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.
-