Record Class FishProperties.SweetSpot
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.registry.FishProperties.SweetSpot
- Enclosing class:
FishProperties
public static record FishProperties.SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor, List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic FishProperties.SweetSpotstatic final com.mojang.serialization.Codec<FishProperties.SweetSpot> static FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic final com.mojang.serialization.Codec<List<FishProperties.SweetSpot>> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, List<FishProperties.SweetSpot>> static FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, FishProperties.SweetSpot> static FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.SweetSpotstatic FishProperties.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<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers) 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<Supplier<Supplier<AbstractMinigameModifier>>> 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.moving(float movingRate) floatReturns the value of themovingRaterecord component.Returns the value of theonHitModifiersrecord 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 FishProperties.SweetSpotwithModifiers(Supplier<Supplier<AbstractMinigameModifier>>... modifiers)
-
Field Details
-
TRASH
-
NORMAL_STEADY
-
NORMAL
-
THIN_STEADY
-
THIN_STEADY_MOSSY
-
THIN
-
FREEZE
-
NORMAL_HEAVY
-
TREASURE
-
WITHER
-
WITHER_REVERSED
-
WITHER_BIG
-
CREEPER
-
TNT
-
STONE_5
-
STONE
-
AQUA
-
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
-
CODEC
-
LIST_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,FishProperties.SweetSpot> STREAM_CODEC -
LIST_STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,List<FishProperties.SweetSpot>> LIST_STREAM_CODEC
-
-
Constructor Details
-
SweetSpot
public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor, List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers) -
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<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers) 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 componentonHitModifiers- the value for theonHitModifiersrecord component
-
-
Method Details
-
flip
-
vanishing
-
moving
-
withModifiers
@SafeVarargs public final FishProperties.SweetSpot withModifiers(Supplier<Supplier<AbstractMinigameModifier>>... modifiers) -
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
-
onHitModifiers
Returns the value of theonHitModifiersrecord component.- Returns:
- the value of the
onHitModifiersrecord component
-