Class SulfurCubeArchetypes
java.lang.Object
net.minecraft.world.entity.SulfurCubeArchetypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> static final ResourceKey<SulfurCubeArchetype> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry> private static List<Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry>> archetype(float speed, float bounce, float friction, float drag) static voidbootstrap(BootstrapContext<SulfurCubeArchetype> context) private static SulfurCubeArchetype.ContactDamagecontactDamage(BootstrapContext<SulfurCubeArchetype> context, ResourceKey<DamageType> damageType, FloatProvider amount, boolean attributeToSource) private static ResourceKey<SulfurCubeArchetype> createKey(Identifier id) private static SulfurCubeArchetype.KnockbackModifiersknockBackHitScale(float horizontalPower, float verticalPower) private static Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry> private static voidregister(BootstrapContext<SulfurCubeArchetype> context, ResourceKey<SulfurCubeArchetype> name, TagKey<Item> blocks, List<Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry>> modifiers, boolean floats, Optional<SulfurCubeArchetype.ExplosionData> maxFuse, Optional<SulfurCubeArchetype.ContactDamage> contactDamage, SulfurCubeArchetype.KnockbackModifiers knockbackModifiers, SulfurCubeArchetype.SoundSettings soundSettings) private static SulfurCubeArchetype.SoundSettingssoundSettings(Holder<SoundEvent> hitSound, Holder<SoundEvent> pushSound, float threshold, float cooldown)
-
Field Details
-
REGULAR
-
BOUNCY
-
SLOW_BOUNCY
-
SLOW_FLAT
-
FAST_FLAT
-
LIGHT
-
FAST_SLIDING
-
SLOW_SLIDING
-
HIGH_RESISTANCE
-
STICKY
-
EXPLOSIVE
-
HOT
-
-
Constructor Details
-
SulfurCubeArchetypes
public SulfurCubeArchetypes()
-
-
Method Details
-
bootstrap
-
createKey
-
add
private static Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry> add(Holder<Attribute> attribute, double amount) -
multiply
private static Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry> multiply(Holder<Attribute> attribute, double amount) -
archetype
private static List<Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry>> archetype(float speed, float bounce, float friction, float drag) -
contactDamage
private static SulfurCubeArchetype.ContactDamage contactDamage(BootstrapContext<SulfurCubeArchetype> context, ResourceKey<DamageType> damageType, FloatProvider amount, boolean attributeToSource) -
knockBackHitScale
private static SulfurCubeArchetype.KnockbackModifiers knockBackHitScale(float horizontalPower, float verticalPower) -
soundSettings
private static SulfurCubeArchetype.SoundSettings soundSettings(Holder<SoundEvent> hitSound, Holder<SoundEvent> pushSound, float threshold, float cooldown) -
register
private static void register(BootstrapContext<SulfurCubeArchetype> context, ResourceKey<SulfurCubeArchetype> name, TagKey<Item> blocks, List<Function<ResourceKey<SulfurCubeArchetype>, SulfurCubeArchetype.AttributeEntry>> modifiers, boolean floats, Optional<SulfurCubeArchetype.ExplosionData> maxFuse, Optional<SulfurCubeArchetype.ContactDamage> contactDamage, SulfurCubeArchetype.KnockbackModifiers knockbackModifiers, SulfurCubeArchetype.SoundSettings soundSettings)
-