Class PortalConfiguration
java.lang.Object
tech.anonymoushacker1279.openportals.portal.config.PortalConfiguration
Immutable configuration data for a custom portal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating immutablePortalConfigurationinstances. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLightInDimension(net.minecraft.resources.Identifier identifier) Check if this portal can be lit in the given dimension.booleandoesIgnitionMatch(PortalIgnitionSource attemptedSource) Check if the given ignition source matches this portal's ignition source.intgetColor()net.minecraft.world.level.block.Blockintintnet.minecraft.resources.Identifierintintintintnet.minecraft.resources.Identifier
-
Method Details
-
getFrameBlock
public net.minecraft.world.level.block.Block getFrameBlock() -
getIgnitionSource
-
getPortalBlock
-
getTargetDimensionIdentifier
public net.minecraft.resources.Identifier getTargetDimensionIdentifier() -
getReturnDimensionIdentifier
public net.minecraft.resources.Identifier getReturnDimensionIdentifier() -
getColor
public int getColor() -
getStrictWidth
public int getStrictWidth() -
getStrictHeight
public int getStrictHeight() -
getPortalSearchYBottom
public int getPortalSearchYBottom() -
getPortalSearchYTop
public int getPortalSearchYTop() -
getReturnPortalSearchYBottom
public int getReturnPortalSearchYBottom() -
getReturnPortalSearchYTop
public int getReturnPortalSearchYTop() -
getFrameTester
-
doesIgnitionMatch
Check if the given ignition source matches this portal's ignition source.- Parameters:
attemptedSource- the ignition source to check- Returns:
- true if the sources match
-
canLightInDimension
public boolean canLightInDimension(net.minecraft.resources.Identifier identifier) Check if this portal can be lit in the given dimension.- Parameters:
identifier- the dimension identifier to check- Returns:
- true if the portal can be lit in this dimension
-