mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
Fix ignoring maxUpStep method overrides on entities (#9583)
This commit is contained in:
1 parent
9450dfd67c
commit
a43be39137
4 files changed
+20
-11
No files matched your search
@@ -203,13 +203,13 @@ public interface IForgeEntity extends ICapabilitySerializable<CompoundTag>
|
||||
|
||||
/**
|
||||
* @return Return the height in blocks the Entity can step up without needing to jump
|
||||
* This is the sum of vanilla's {@link Entity#maxUpStep} field and the current value
|
||||
* This is the sum of vanilla's {@link Entity#maxUpStep()} method and the current value
|
||||
* of the {@link net.minecraftforge.common.ForgeMod#STEP_HEIGHT_ADDITION} attribute
|
||||
* (if this Entity is a {@link LivingEntity} and has the attribute), clamped at 0.
|
||||
*/
|
||||
default float getStepHeight()
|
||||
{
|
||||
float vanillaStep = self().maxUpStep;
|
||||
float vanillaStep = self().maxUpStep();
|
||||
if (self() instanceof LivingEntity living)
|
||||
{
|
||||
AttributeInstance stepHeightAttribute = living.getAttribute(ForgeMod.STEP_HEIGHT_ADDITION.get());
|
||||
|
||||
@@ -219,7 +219,6 @@ public net.minecraft.util.thread.BlockableEventLoop m_18689_(Ljava/lang/Runnable
|
||||
#group public net.minecraft.world.damagesource.DamageSource *() #All methods public, most are already
|
||||
public net.minecraft.world.damagesource.DamageSource <init>(Lnet/minecraft/core/Holder;Lnet/minecraft/world/entity/Entity;Lnet/minecraft/world/entity/Entity;Lnet/minecraft/world/phys/Vec3;)V # constructor
|
||||
#endgroup
|
||||
public net.minecraft.world.entity.Entity f_19793_ # maxUpStep
|
||||
protected net.minecraft.world.entity.Entity f_19843_ # ENTITY_COUNTER
|
||||
public net.minecraft.world.entity.Entity m_20078_()Ljava/lang/String; # getEncodeId
|
||||
public net.minecraft.world.entity.ExperienceOrb f_20770_ # value
|
||||
|
||||
Reference in new issue
Block a user