Class ValoriaTeleporter
java.lang.Object
com.idark.valoria.registries.levelgen.portal.BaseTeleporter
com.idark.valoria.registries.levelgen.portal.ValoriaTeleporter
- All Implemented Interfaces:
net.minecraftforge.common.util.ITeleporter
public class ValoriaTeleporter
extends BaseTeleporter
implements net.minecraftforge.common.util.ITeleporter
-
Field Summary
Fields inherited from class com.idark.valoria.registries.levelgen.portal.BaseTeleporter
insideDimension, poi, thisPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.BlockUtil.FoundRectangle>
createPortal
(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState portal, net.minecraft.world.level.block.state.BlockState frame) net.minecraft.world.level.portal.PortalInfo
getPortalInfo
(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel destWorld, Function<net.minecraft.server.level.ServerLevel, net.minecraft.world.level.portal.PortalInfo> defaultPortalInfo) net.minecraft.world.entity.Entity
placeEntity
(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel currentWorld, net.minecraft.server.level.ServerLevel destinationWorld, float yaw, Function<Boolean, net.minecraft.world.entity.Entity> repositionEntity) Methods inherited from class com.idark.valoria.registries.levelgen.portal.BaseTeleporter
getHeight
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.util.ITeleporter
isVanilla, playTeleportSound
-
Constructor Details
-
ValoriaTeleporter
public ValoriaTeleporter(net.minecraft.core.BlockPos pos, boolean insideDim)
-
-
Method Details
-
getPortalInfo
public net.minecraft.world.level.portal.PortalInfo getPortalInfo(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel destWorld, Function<net.minecraft.server.level.ServerLevel, net.minecraft.world.level.portal.PortalInfo> defaultPortalInfo) - Specified by:
getPortalInfo
in interfacenet.minecraftforge.common.util.ITeleporter
-
placeEntity
public net.minecraft.world.entity.Entity placeEntity(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel currentWorld, net.minecraft.server.level.ServerLevel destinationWorld, float yaw, Function<Boolean, net.minecraft.world.entity.Entity> repositionEntity) - Specified by:
placeEntity
in interfacenet.minecraftforge.common.util.ITeleporter
-
createPortal
public Optional<net.minecraft.BlockUtil.FoundRectangle> createPortal(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState portal, net.minecraft.world.level.block.state.BlockState frame)
-