public class PortalDevicePageSupplier implements OpenCustomUIInteraction.CustomPageSupplier
Class PortalDevicePageSupplier. Provides portaldevicepagesupplier functionality for the Hytale server.
java.lang.Object > PortalDevicePageSupplier
Field Summary
config
private
PortalDeviceConfig
config
Field config.
targetBlock
final
BlockPosition
targetBlock
Field targetBlock.
playerComponent
final
Player
playerComponent
Field playerComponent.
inHand
final
ItemStack
inHand
Field inHand.
world
final
World
world
Field world.
blockType
final
BlockType
blockType
Field blockType.
blockState
final
BlockType
blockState
Field blockState.
onBlock
final
BlockType
onBlock
Field onBlock.
chunkStore
final
ChunkStore
chunkStore
Field chunkStore.
blockRef
final
Ref
blockRef
Field blockRef.
existingDevice
final
PortalDevice
existingDevice
Field existingDevice.
destinationWorld
final
World
destinationWorld
Field destinationWorld.
store
final
Store
store
Field store.
portalWorld
final
PortalWorld
portalWorld
Field portalWorld.
Method Detail
tryCreate
public
CustomUIPage
tryCreate
(final Ref ref, final ComponentAccessor store, final PlayerRef playerRef, final InteractionContext context)
Method tryCreate.
- Parameters:
final Refreffinal ComponentAccessorstorefinal PlayerRefplayerReffinal InteractionContextcontext
Vector3i
public
new
Vector3i
(targetBlock.x, targetBlock.y, targetBlock.z)
Method Vector3i.
- Parameters:
targetBlock.xtargetBlock.xtargetBlock.ytargetBlock.ytargetBlock.ztargetBlock.z
PortalDevice
public
new
PortalDevice
(this.config, blockType.getId()
Method PortalDevice.
- Parameters:
this.configthis.configblockType.getId(blockType.getId(
isPortalWorldValid
static
boolean
isPortalWorldValid
(@Nullable final World world)
Method isPortalWorldValid.
- Parameters:
@Nullable final Worldworld