Record Class PlatformData
java.lang.Object
java.lang.Record
io.github.miniplaceholders.api.provider.PlatformData
- Record Components:
serverInstance- The server instance.
In Paper it will beorg.bukkit.Server,
in Velocity it will becom.velocitypowered.api.proxy.ProxyServer,
in Sponge it will beorg.spongepowered.api.Server,
and in Fabric it will benet.minecraft.server.MinecraftServer.complementInstance- The main class of MiniPlaceholders, either as a plugin or mod.
In Paper it will beorg.bukkit.plugin.java.JavaPlugin,
in Velocity it will beio.github.miniplaceholders.velocity.VelocityPlugin,
in Sponge it will beio.github.miniplaceholders.sponge.SpongePlugin,
and in Fabric it will benet.fabricmc.api.ModInitializer.
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformData(Object serverInstance, Object complementInstance) Creates an instance of aPlatformDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomplementInstancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverInstancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlatformData
Creates an instance of aPlatformDatarecord class.- Parameters:
serverInstance- the value for theserverInstancerecord componentcomplementInstance- the value for thecomplementInstancerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
serverInstance
Returns the value of theserverInstancerecord component.- Returns:
- the value of the
serverInstancerecord component
-
complementInstance
Returns the value of thecomplementInstancerecord component.- Returns:
- the value of the
complementInstancerecord component
-