Record Class EntityPageElement
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.EntityPageElement
- All Implemented Interfaces:
GuidePage
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ixdarklord.folios.api.client.page.GuidePage
GuidePage.Laid, GuidePage.Part, GuidePage.SpreadHalf -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EntityPageElement> -
Constructor Summary
ConstructorsConstructorDescriptionEntityPageElement(net.minecraft.resources.ResourceLocation entity, Optional<String> title, String text, float zoom, float spin, float yaw, int height) Creates an instance of aEntityPageElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.lay(GuideLayout layout) Sets the page out: one or more pages, each drawn on its own.Words of the page a search should find it by.floatspin()Returns the value of thespinrecord component.text()Returns the value of thetextrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.floatzoom()Returns the value of thezoomrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ixdarklord.folios.api.client.page.GuidePage
items, objectives, spread
-
Field Details
-
CODEC
-
-
Constructor Details
-
EntityPageElement
public EntityPageElement(net.minecraft.resources.ResourceLocation entity, Optional<String> title, String text, float zoom, float spin, float yaw, int height) Creates an instance of aEntityPageElementrecord class.- Parameters:
entity- the value for theentityrecord componenttitle- the value for thetitlerecord componenttext- the value for thetextrecord componentzoom- the value for thezoomrecord componentspin- the value for thespinrecord componentyaw- the value for theyawrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
lay
Description copied from interface:GuidePageSets the page out: one or more pages, each drawn on its own. -
searchText
Description copied from interface:GuidePageWords of the page a search should find it by.- Specified by:
searchTextin interfaceGuidePage
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entity
public net.minecraft.resources.ResourceLocation entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
zoom
public float zoom()Returns the value of thezoomrecord component.- Returns:
- the value of the
zoomrecord component
-
spin
public float spin()Returns the value of thespinrecord component.- Returns:
- the value of the
spinrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-