updated mappings
This commit is contained in:
1 parent
dbf8dfb3c5
commit
f0f3d4a60e
14 files changed
+37
-39
No files matched your search
@@ -29,7 +29,7 @@ public abstract class FallingBlockEntityMixin extends Entity
|
||||
private void tickCheck(CallbackInfo ci)
|
||||
{
|
||||
if (LoggerRegistry.__fallingBlocks && logHelper != null)
|
||||
logHelper.onTick(method_23317(), method_23318(), method_23321(), getVelocity());
|
||||
logHelper.onTick(getX(), getY(), getZ(), getVelocity());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -27,7 +27,7 @@ public abstract class GuardianEntityMixin extends HostileEntity
|
||||
if (!this.world.isClient && !this.removed && CarpetSettings.renewableSponges)
|
||||
{
|
||||
ElderGuardianEntity elderGuardian = new ElderGuardianEntity(EntityType.ELDER_GUARDIAN ,this.world);
|
||||
elderGuardian.setPositionAndAngles(this.method_23317(), this.method_23318(), this.method_23321(), this.yaw, this.pitch);
|
||||
elderGuardian.setPositionAndAngles(this.getX(), this.getY(), this.getZ(), this.yaw, this.pitch);
|
||||
elderGuardian.initialize(this.world ,this.world.getLocalDifficulty(new BlockPos(elderGuardian)), SpawnType.CONVERSION, (EntityData)null, (CompoundTag)null);
|
||||
elderGuardian.setAiDisabled(this.isAiDisabled());
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public abstract class ProjectileEntityMixin extends Entity
|
||||
private void tickCheck(CallbackInfo ci)
|
||||
{
|
||||
if (LoggerRegistry.__projectiles && logHelper != null)
|
||||
logHelper.onTick(method_23317(), method_23318(), method_23321(), getVelocity());
|
||||
logHelper.onTick(getX(), getY(), getZ(), getVelocity());
|
||||
}
|
||||
|
||||
@Inject(method = "onHit(Lnet/minecraft/util/hit/HitResult;)V", at = @At("RETURN"))
|
||||
|
||||
@@ -38,9 +38,9 @@ public class ServerPlayNetworkHandler_tickMixin
|
||||
))
|
||||
private void checkMove(PlayerMoveC2SPacket p, CallbackInfo ci)
|
||||
{
|
||||
if (Math.abs(p.getX(player.method_23317()) - lastTickX) > 0.0001D
|
||||
|| Math.abs(p.getY(player.method_23318()) - lastTickY) > 0.0001D
|
||||
|| Math.abs(p.getY(player.method_23321()) - lastTickZ) > 0.0001D)
|
||||
if (Math.abs(p.getX(player.getX()) - lastTickX) > 0.0001D
|
||||
|| Math.abs(p.getY(player.getY()) - lastTickY) > 0.0001D
|
||||
|| Math.abs(p.getY(player.getZ()) - lastTickZ) > 0.0001D)
|
||||
{
|
||||
TickSpeed.reset_player_active_timeout();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public abstract class ThrownEntityMixin extends Entity
|
||||
private void tickCheck(CallbackInfo ci)
|
||||
{
|
||||
if (LoggerRegistry.__projectiles && logHelper != null)
|
||||
logHelper.onTick(method_23317(), method_23318(), method_23321(), getVelocity());
|
||||
logHelper.onTick(getX(), getY(), getZ(), getVelocity());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -38,7 +38,7 @@ public abstract class TntEntityMixin extends Entity
|
||||
{
|
||||
if (LoggerRegistry.__tnt && logHelper != null && !logHelper.initialized)
|
||||
{
|
||||
logHelper.onPrimed(method_23317(), method_23318(), method_23321(), getVelocity());
|
||||
logHelper.onPrimed(getX(), getY(), getZ(), getVelocity());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +56,6 @@ public abstract class TntEntityMixin extends Entity
|
||||
private void onExplode(CallbackInfo ci)
|
||||
{
|
||||
if (LoggerRegistry.__tnt && logHelper != null)
|
||||
logHelper.onExploded(method_23317(), method_23318(), method_23321());
|
||||
logHelper.onExploded(getX(), getY(), getZ());
|
||||
}
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public abstract class VillagerEntity_aiMixin extends AbstractTraderEntity
|
||||
if (bedPos == null || bedPos.getDimension() != dimension)
|
||||
{
|
||||
sayNo();
|
||||
((ServerWorld) getEntityWorld()).spawnParticles(ParticleTypes.BARRIER, method_23317(), method_23318() + getStandingEyeHeight() + 1, method_23321(), 1, 0.1, 0.1, 0.1, 0.0);
|
||||
((ServerWorld) getEntityWorld()).spawnParticles(ParticleTypes.BARRIER, getX(), getY() + getStandingEyeHeight() + 1, getZ(), 1, 0.1, 0.1, 0.1, 0.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -181,7 +181,7 @@ public abstract class VillagerEntity_aiMixin extends AbstractTraderEntity
|
||||
{
|
||||
if (MobAI.isTracking(this, MobAI.TrackingType.IRON_GOLEM_SPAWNING))
|
||||
{
|
||||
((ServerWorld) getEntityWorld()).spawnParticles(ParticleTypes.BARRIER, method_23317(), method_23318()+3, method_23321(), 1, 0.1, 0.1, 0.1, 0.0);
|
||||
((ServerWorld) getEntityWorld()).spawnParticles(ParticleTypes.BARRIER, getX(), getY()+3, getZ(), 1, 0.1, 0.1, 0.1, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user