Package com.cake.azimuth.goggle.builder
Record Class GoggleBuilder
java.lang.Object
java.lang.Record
com.cake.azimuth.goggle.builder.GoggleBuilder
public record GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, int initialTooltipSize, String modId, boolean datagen, int indentLevel, boolean active, GoggleBuilder parent)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, int initialTooltipSize, String modId, boolean datagen, int indentLevel, boolean active, GoggleBuilder parent) Creates an instance of aGoggleBuilderrecord class.GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, String modId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.conditional(Supplier<Boolean> condition) booleandatagen()Returns the value of thedatagenrecord component.static GoggleBuilderfinal booleanIndicates whether some other object is "equal to" this one.List<net.minecraft.network.chat.Component> booleanfinal inthashCode()Returns a hash code value for this object.intReturns the value of theindentLevelrecord component.intReturns the value of theinitialTooltipSizerecord component.booleanReturns the value of theisPlayerSneakingrecord component.label(GoggleComponent component) modId()Returns the value of themodIdrecord component.parent()Returns the value of theparentrecord component.net.minecraft.network.chat.MutableComponentrenderComponent(GoggleComponent component) section(GoggleComponent component) statistic(GoggleComponent component, Object value) <T extends StatisticGoggleBuilder>
Tstatistic(GoggleComponent component, Object value, StatisticStyle<T> style) <T extends StatisticGoggleBuilder>
Tstatistic(GoggleComponent component, Object current, Object max, StatisticStyle<T> style) <T extends StatisticGoggleBuilder>
Tstatistic(String keySuffix, String defaultEnglish, Object value, StatisticStyle<T> style) <T extends StatisticGoggleBuilder>
Tstatistic(String keySuffix, String defaultEnglish, Object current, Object max, StatisticStyle<T> style) List<net.minecraft.network.chat.Component> tooltip()Returns the value of thetooltiprecord component.final StringtoString()Returns a string representation of this record class.withIndent(int level) withRenderCondition(boolean condition)
-
Constructor Details
-
GoggleBuilder
-
GoggleBuilder
public GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, int initialTooltipSize, String modId, boolean datagen, int indentLevel, boolean active, GoggleBuilder parent) Creates an instance of aGoggleBuilderrecord class.- Parameters:
tooltip- the value for thetooltiprecord componentisPlayerSneaking- the value for theisPlayerSneakingrecord componentinitialTooltipSize- the value for theinitialTooltipSizerecord componentmodId- the value for themodIdrecord componentdatagen- the value for thedatagenrecord componentindentLevel- the value for theindentLevelrecord componentactive- the value for theactiverecord componentparent- the value for theparentrecord component
-
-
Method Details
-
datagen
-
section
-
section
-
label
-
label
-
statistic
-
statistic
public <T extends StatisticGoggleBuilder> T statistic(GoggleComponent component, Object value, StatisticStyle<T> style) -
statistic
public <T extends StatisticGoggleBuilder> T statistic(GoggleComponent component, Object current, Object max, StatisticStyle<T> style) -
statistic
-
statistic
public <T extends StatisticGoggleBuilder> T statistic(String keySuffix, String defaultEnglish, Object value, StatisticStyle<T> style) -
statistic
public <T extends StatisticGoggleBuilder> T statistic(String keySuffix, String defaultEnglish, Object current, Object max, StatisticStyle<T> style) -
withRenderCondition
-
conditional
-
isSneaking
-
isNotSneaking
-
endConditional
-
withIndent
-
getRawTooltip
-
hasAppendedData
public boolean hasAppendedData() -
renderComponent
-
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 '=='. -
tooltip
Returns the value of thetooltiprecord component.- Returns:
- the value of the
tooltiprecord component
-
isPlayerSneaking
public boolean isPlayerSneaking()Returns the value of theisPlayerSneakingrecord component.- Returns:
- the value of the
isPlayerSneakingrecord component
-
initialTooltipSize
public int initialTooltipSize()Returns the value of theinitialTooltipSizerecord component.- Returns:
- the value of the
initialTooltipSizerecord component
-
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
datagen
public boolean datagen()Returns the value of thedatagenrecord component.- Returns:
- the value of the
datagenrecord component
-
indentLevel
public int indentLevel()Returns the value of theindentLevelrecord component.- Returns:
- the value of the
indentLevelrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-