Package | Description |
---|---|
com.legacy.structure_gel.blocks | |
com.legacy.structure_gel.util |
Modifier and Type | Method and Description |
---|---|
GelTeleporter |
GelPortalBlock.getTeleporter(net.minecraft.world.server.ServerWorld world)
Returns the the teleporter instance for the world passed.
|
Constructor and Description |
---|
GelPortalBlock(net.minecraft.block.AbstractBlock.Properties properties,
java.util.function.Function<net.minecraft.world.server.ServerWorld,GelTeleporter> teleporter) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<net.minecraft.util.TeleportationRepositioner.Result> |
GelTeleporter.ICreatePortalFuncion.apply(GelTeleporter teleporter,
net.minecraft.util.math.BlockPos startPos,
net.minecraft.util.Direction.Axis enterAxis) |
static java.util.Optional<net.minecraft.util.TeleportationRepositioner.Result> |
GelTeleporter.createAndFindPortalNether(GelTeleporter teleporter,
net.minecraft.util.math.BlockPos startPos,
net.minecraft.util.Direction.Axis enterAxis)
Default code for the Teleporter with slight modification.
|
static java.util.Optional<net.minecraft.util.TeleportationRepositioner.Result> |
GelTeleporter.createAndFindPortalSurface(GelTeleporter teleporter,
net.minecraft.util.math.BlockPos startPos,
net.minecraft.util.Direction.Axis enterAxis)
Places this portal on highest block in the world, ignoring blocks specified
in
shouldIgnoreBlock(BlockState, BlockPos) . |