Package com.wdiscute.starcatcher.fish
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 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 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.SweetSpotstatic Difficulty.SweetSpot -
Constructor Summary
ConstructorsConstructorDescriptionSweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor) SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation 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.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor) SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor, List<Modifier> onHitModifiers) -
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.ResourceLocationReturns the value of thesweetSpotTyperecord component.net.minecraft.resources.ResourceLocationReturns the value of thetexturePathrecord component.final StringtoString()Returns a string representation of this record class.vanishing(float vanishingRate) floatReturns the value of thevanishingRaterecord component.final Difficulty.SweetSpotwithModifiers(Modifier... modifiers)
-
Field Details
-
TRASH
-
NORMAL_STEADY
-
NORMAL
-
SCULK
-
THIN_STEADY
-
THIN_STEADY_MOSSY
-
THIN
-
RED_MUSHROOM
-
BROWN_MUSHROOM
-
FROZEN
-
MIRAGE_NORMAL
-
MIRAGE_THIN
-
NORMAL_HEAVY
-
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
-
SweetSpot
public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor) -
SweetSpot
public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor) -
SweetSpot
public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation 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
-
withModifiers
-
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 '=='. -
sweetSpotType
public net.minecraft.resources.ResourceLocation sweetSpotType()Returns the value of thesweetSpotTyperecord component.- Returns:
- the value of the
sweetSpotTyperecord component
-
texturePath
public net.minecraft.resources.ResourceLocation 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
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-