Package | Description |
---|---|
com.legacy.structure_gel.blocks | |
com.legacy.structure_gel.util | |
com.legacy.structure_gel.util.capability |
Modifier and Type | Method and Description |
---|---|
static boolean |
GelPortalBlock.fillPortal(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
GelPortalBlock portal,
java.util.List<net.minecraft.block.Block> allowedBlocks)
Call this to fill the portal when whatever condition you need to fill it
occurs.
|
Modifier and Type | Field and Description |
---|---|
GelPortalBlock |
GelPortalSize.portal |
Modifier and Type | Method and Description |
---|---|
java.util.function.Supplier<GelPortalBlock> |
GelTeleporter.getPortalBlock() |
Modifier and Type | Method and Description |
---|---|
static boolean |
GelPortalSize.isPortal(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
GelPortalBlock portalBlock,
java.util.List<net.minecraft.block.Block> allowedInsideBlocks)
Checks to see if the position is within a portal frame.
|
static boolean |
GelPortalSize.trySpawnPortal(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos pos,
GelPortalBlock portalBlock,
java.util.List<net.minecraft.block.Block> allowedBlocks)
Attempts to spawn a portal.
|
Constructor and Description |
---|
GelPortalSize(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction.Axis axis,
net.minecraft.block.Block frame,
GelPortalBlock portal,
java.util.List<net.minecraft.block.Block> allowedBlocks) |
Constructor and Description |
---|
GelTeleporter(net.minecraft.world.server.ServerWorld worldIn,
java.util.function.Supplier<net.minecraft.util.RegistryKey<net.minecraft.world.World>> dimension1,
java.util.function.Supplier<net.minecraft.util.RegistryKey<net.minecraft.world.World>> dimension2,
java.util.function.Supplier<net.minecraft.village.PointOfInterestType> portalPOI,
java.util.function.Supplier<GelPortalBlock> portalBlock,
java.util.function.Supplier<net.minecraft.block.BlockState> frameBlock,
GelTeleporter.CreatePortalBehavior placementBehavior) |
GelTeleporter(net.minecraft.world.server.ServerWorld world,
java.util.function.Supplier<net.minecraft.util.RegistryKey<net.minecraft.world.World>> dimension1,
java.util.function.Supplier<net.minecraft.util.RegistryKey<net.minecraft.world.World>> dimension2,
java.util.function.Supplier<net.minecraft.village.PointOfInterestType> portalPOI,
java.util.function.Supplier<GelPortalBlock> portalBlock,
java.util.function.Supplier<net.minecraft.block.BlockState> frameBlock,
GelTeleporter.ICreatePortalFuncion placementBehavior) |
Modifier and Type | Method and Description |
---|---|
GelPortalBlock |
IGelEntity.getPortal()
The portal that the entity last stepped into.
|
GelPortalBlock |
GelEntity.getPortal() |
GelPortalBlock |
IGelEntity.getPortalAudio()
The portal that the entity last stepped into.
|
GelPortalBlock |
GelEntity.getPortalAudio() |
GelPortalBlock |
IGelEntity.getPortalVisual()
The portal that the entity last stepped into.
|
GelPortalBlock |
GelEntity.getPortalVisual() |
Modifier and Type | Method and Description |
---|---|
void |
IGelEntity.setPortal(GelPortalBlock portal) |
void |
GelEntity.setPortal(GelPortalBlock portal) |
void |
IGelEntity.setPortalAudio(GelPortalBlock portalAudio) |
void |
GelEntity.setPortalAudio(GelPortalBlock portalAudio) |
void |
IGelEntity.setPortalVisual(GelPortalBlock portal) |
void |
GelEntity.setPortalVisual(GelPortalBlock prevPortal) |