Record Class Difficulty.SweetSpot
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.fish.Difficulty.SweetSpot
- Enclosing class:
Difficulty
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic final com.mojang.serialization.Codec<Difficulty.SweetSpot> static Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic final com.mojang.serialization.Codec<List<Difficulty.SweetSpot>> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, List<Difficulty.SweetSpot>> static Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, Difficulty.SweetSpot> static Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpotstatic Difficulty.SweetSpot -
Constructor Summary
ConstructorsConstructorDescriptionSweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor) SweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor, List<Modifier> modifiers) Creates an instance of aSweetSpotrecord class.SweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, int particleColor) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flip()final inthashCode()Returns a hash code value for this object.booleanisFlip()Returns the value of theisFliprecord component.Returns the value of themodifiersrecord component.moving(float movingRate) floatReturns the value of themovingRaterecord component.intReturns the value of theparticleColorrecord component.intreward()Returns the value of therewardrecord component.intsize()Returns the value of thesizerecord component.net.minecraft.resources.IdentifierReturns the value of thesweetSpotTyperecord component.com.wdiscute.utils.ScreenUtils.ImageReturns the value of thetexturePathrecord component.final StringtoString()Returns a string representation of this record class.vanishing(float vanishingRate) floatReturns the value of thevanishingRaterecord component.withTexture(com.wdiscute.utils.ScreenUtils.Image texture)
-
Field Details
-
TRASH
-
NORMAL_STEADY
-
NORMAL
-
SCULK
-
THIN_STEADY
-
THIN
-
KING_OF_THE_FROST
-
RED_MUSHROOM
-
BROWN_MUSHROOM
-
FROZEN
-
MIRAGE_NORMAL
-
MIRAGE_THIN
-
TREASURE
-
WITHER
-
WITHER_BIG
-
CREEPER
-
TNT
-
TNT_VANISHING
-
STONE_LOW_REWARD
-
STONE
-
DEEPSLATE
-
CLOUD_1
-
CLOUD_2
-
CLOUD_3
-
CLOUD_4
-
DRIPSTONE
-
GLOWING
-
LEAF
-
DEEPSLATE_CRAB_CLAW
-
DEEPSLATE_CRAB_LEG
-
OBSIDIAN_CRAB_CLAW
-
OBSIDIAN_CRAB_LEG
-
NETHER_CRAB_CLAW
-
NETHER_CRAB_LEG
-
END_CRAB_CLAW
-
END_CRAB_LEG
-
VOIDBITER_SPOT
-
CODEC
-
LIST_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, Difficulty.SweetSpot> STREAM_CODEC -
LIST_STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, List<Difficulty.SweetSpot>> LIST_STREAM_CODEC
-
-
Constructor Details
-
SweetSpot
public SweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, int particleColor) -
SweetSpot
public SweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor) -
SweetSpot
public SweetSpot(net.minecraft.resources.Identifier sweetSpotType, com.wdiscute.utils.ScreenUtils.Image texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor, List<Modifier> modifiers) Creates an instance of aSweetSpotrecord class.- Parameters:
sweetSpotType- the value for thesweetSpotTyperecord componenttexturePath- the value for thetexturePathrecord componentsize- the value for thesizerecord componentreward- the value for therewardrecord componentisFlip- the value for theisFliprecord componentvanishingRate- the value for thevanishingRaterecord componentmovingRate- the value for themovingRaterecord componentparticleColor- the value for theparticleColorrecord componentmodifiers- the value for themodifiersrecord component
-
-
Method Details
-
flip
-
vanishing
-
moving
-
withTexture
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sweetSpotType
public net.minecraft.resources.Identifier sweetSpotType()Returns the value of thesweetSpotTyperecord component.- Returns:
- the value of the
sweetSpotTyperecord component
-
texturePath
public com.wdiscute.utils.ScreenUtils.Image texturePath()Returns the value of thetexturePathrecord component.- Returns:
- the value of the
texturePathrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
reward
public int reward()Returns the value of therewardrecord component.- Returns:
- the value of the
rewardrecord component
-
isFlip
public boolean isFlip()Returns the value of theisFliprecord component.- Returns:
- the value of the
isFliprecord component
-
vanishingRate
public float vanishingRate()Returns the value of thevanishingRaterecord component.- Returns:
- the value of the
vanishingRaterecord component
-
movingRate
public float movingRate()Returns the value of themovingRaterecord component.- Returns:
- the value of the
movingRaterecord component
-
particleColor
public int particleColor()Returns the value of theparticleColorrecord component.- Returns:
- the value of the
particleColorrecord component
-
modifiers
-