Class StoneHookModifier
java.lang.Object
com.wdiscute.starcatcher.registry.minigamemodifiers.AbstractMinigameModifier
com.wdiscute.starcatcher.registry.minigamemodifiers.AbstractTimedModifier
com.wdiscute.starcatcher.registry.minigamemodifiers.StoneHookModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StoneHookModifier> Fields inherited from class AbstractMinigameModifier
DOUBLE_SUP_LIST_CODEC, instance, MINIGAME_MODIFIER_CODEC, removed, tickCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends AbstractMinigameModifier> codec()net.neoforged.neoforge.registries.DeferredHolder<Supplier<AbstractMinigameModifier>, Supplier<AbstractMinigameModifier>> booleanonHit(ActiveSweetSpot ass) Runs right before the sweetSpotBehaviour hitMethods inherited from class AbstractTimedModifier
getLength, tickMethods inherited from class AbstractMinigameModifier
disablePointerRendering, disableSweetSpotRendering, forceAwardTreasure, getCodecOrThrow, getRegistryHolderOrThrow, onAdd, onKeyPress, onKeyReleased, onMiss, onRemove, onSpotAdded, renderBackground, renderForeground, renderOnPointer, renderOnSweetSpot, skipHitParticles, skipHitSound, skipMissSound, skipRenderingKimbeMarker, toDoubleSup, toSupplier
-
Field Details
-
CODEC
-
-
Constructor Details
-
StoneHookModifier
public StoneHookModifier(int length) -
StoneHookModifier
public StoneHookModifier()
-
-
Method Details
-
codec
- Specified by:
codecin classAbstractMinigameModifier
-
getRegistryHolder
public net.neoforged.neoforge.registries.DeferredHolder<Supplier<AbstractMinigameModifier>, Supplier<AbstractMinigameModifier>> getRegistryHolder()- Specified by:
getRegistryHolderin classAbstractMinigameModifier
-
onHit
Description copied from class:AbstractMinigameModifierRuns right before the sweetSpotBehaviour hit- Overrides:
onHitin classAbstractMinigameModifier- Returns:
- whether the hit should be cancelled
-