Record Class FishProperties.Difficulty
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.registry.FishProperties.Difficulty
- Enclosing class:
FishProperties
public static record FishProperties.Difficulty(int hp, int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, List<FishProperties.SweetSpot> sweetSpots)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic FishProperties.Difficultystatic FishProperties.Difficultystatic final com.mojang.serialization.Codec<FishProperties.Difficulty> static FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, FishProperties.Difficulty> static FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficultystatic FishProperties.Difficulty -
Constructor Summary
ConstructorsConstructorDescriptionDifficulty(int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, FishProperties.SweetSpot... sweetSpots) Difficulty(int hp, int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, FishProperties.SweetSpot... sweetSpots) Difficulty(int hp, int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, List<FishProperties.SweetSpot> sweetSpots) Creates an instance of aDifficultyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddModifiers(List<Supplier<Supplier<AbstractMinigameModifier>>> newModifier) floatdecay()Returns the value of thedecayrecord component.final booleanIndicates whether some other object is "equal to" this one.flip()final inthashCode()Returns a hash code value for this object.inthp()Returns the value of thehprecord component.Returns the value of themodifiersrecord component.moving()moving(float movingRate) intpenalty()Returns the value of thepenaltyrecord component.intspeed()Returns the value of thespeedrecord component.Returns the value of thesweetSpotsrecord component.final StringtoString()Returns a string representation of this record class.vanishing(float vanishingRate)
-
Field Details
-
TRASH
-
EASY
-
EASY_VANISHING
-
EASY_MOVING
-
MEDIUM
-
MEDIUM_VANISHING
-
MEDIUM_MOVING
-
MEDIUM_VANISHING_MOVING
-
HARD
-
HARD_VANISHING
-
HARD_MOVING
-
THIN_NO_DECAY_NOT_FORGIVING
-
HEAVY_FIVE_NORMAL
-
FOUR_BIG
-
FOUR_BIG_VANISHING
-
FOUR_BIG_MOVING
-
HEAVY_EIGHT_AQUA
-
HEAVY_EIGHT_AQUA_MOVING
-
TWO_AQUA_ONE_THIN
-
TWO_AQUA_ONE_THIN_VANISHING
-
FOUR_THIN
-
FOUR_THIN_VANISHING
-
FOUR_THIN_MOVING
-
EIGHT_THIN
-
EIGHT_THIN_VANISHING
-
EIGHT_THIN_MOVING
-
EIGHT_THIN_MOVING_VANISHING
-
THREE_BIG_TWO_THIN
-
THREE_BIG_TWO_THIN_VANISHING
-
EIGHT_STONE_SPOTS
-
TWO_STONE_SPOTS_EASY
-
FOUR_STONE_SPOTS
-
EASY_FAST_FISH
-
SINGLE_AQUA
-
SINGLE_AQUA_MOVING
-
SINGLE_BIG_FAST
-
SINGLE_BIG_FAST_MOVING
-
SINGLE_BIG_FAST_VANISHING
-
TWO_AQUA
-
FOUR_AQUA
-
SINGLE_THIN_FAST
-
TWO_THIN
-
TWO_THIN_NO_DECAY
-
NON_STOP_ACTION_THREE_BIG
-
NON_STOP_ACTION_AQUA
-
AURORA
-
STONEFISH
-
WITHER
-
CREEPER
-
NO_SWEET_SPOTS
-
DEEPSLATE_CRAB
-
OBSIDIAN_CRAB
-
NETHER_CRAB
-
END_CRAB
-
VOIDBITER
-
JOEL
-
CERBERAY
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,FishProperties.Difficulty> STREAM_CODEC
-
-
Constructor Details
-
Difficulty
public Difficulty(int hp, int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, FishProperties.SweetSpot... sweetSpots) -
Difficulty
public Difficulty(int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, FishProperties.SweetSpot... sweetSpots) -
Difficulty
public Difficulty(int hp, int speed, int penalty, float decay, List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers, List<FishProperties.SweetSpot> sweetSpots) Creates an instance of aDifficultyrecord class.- Parameters:
hp- the value for thehprecord componentspeed- the value for thespeedrecord componentpenalty- the value for thepenaltyrecord componentdecay- the value for thedecayrecord componentmodifiers- the value for themodifiersrecord componentsweetSpots- the value for thesweetSpotsrecord component
-
-
Method Details
-
addModifiers
public FishProperties.Difficulty addModifiers(List<Supplier<Supplier<AbstractMinigameModifier>>> newModifier) -
vanishing
-
vanishing
-
moving
-
moving
-
flip
-
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 '=='. -
hp
public int hp()Returns the value of thehprecord component.- Returns:
- the value of the
hprecord component
-
speed
public int speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
penalty
public int penalty()Returns the value of thepenaltyrecord component.- Returns:
- the value of the
penaltyrecord component
-
decay
public float decay()Returns the value of thedecayrecord component.- Returns:
- the value of the
decayrecord component
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-
sweetSpots
Returns the value of thesweetSpotsrecord component.- Returns:
- the value of the
sweetSpotsrecord component
-