Class EnvironmentAwareEntityMixin

java.lang.Object
net.minecraft.entity.Entity
com.github.thedeathlycow.thermoo.mixin.EnvironmentAwareEntityMixin
All Implemented Interfaces:
Soakable, TemperatureAware, dev.onyxstudios.cca.api.v3.component.ComponentAccess, net.minecraft.server.command.CommandOutput, net.minecraft.util.Nameable, net.minecraft.world.entity.EntityLike

public abstract class EnvironmentAwareEntityMixin extends net.minecraft.entity.Entity implements TemperatureAware, Soakable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.entity.Entity

    net.minecraft.entity.Entity.MoveEffect, net.minecraft.entity.Entity.PositionUpdater, net.minecraft.entity.Entity.RemovalReason
  • Field Summary

    Fields inherited from class net.minecraft.entity.Entity

    age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire

    Fields inherited from interface net.minecraft.server.command.CommandOutput

    DUMMY
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnvironmentAwareEntityMixin(net.minecraft.entity.EntityType<?> type, net.minecraft.world.World world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
     
    abstract net.minecraft.entity.attribute.EntityAttributeInstance
    getAttributeInstance(net.minecraft.entity.attribute.EntityAttribute attribute)
     
    abstract double
    getAttributeValue(net.minecraft.entity.attribute.EntityAttribute attribute)
     
    abstract boolean
    hasStatusEffect(net.minecraft.entity.effect.StatusEffect effect)
     
    void
    thermoo$addTemperature(int temperatureChange, HeatingMode mode)
    Adds or removes some amount of temperature to the thermally aware object.
    boolean
     
    boolean
     
    double
    Supplies the cold resistance of the temperature aware object.
    double
    Supplies the heat resistance of the temperature aware object.
    int
     
    int
     
    int
     
    int
     
    int
     
    boolean
    Soakables ignore frigid water if they can breathe in water.
    void
    thermoo$setTemperature(int temperature)
     
    void
    thermoo$setWetTicks(int amount)
    Sets the wet ticks of a soakable to an exact amount.

    Methods inherited from class net.minecraft.entity.Entity

    addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, initDataTracker, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readCustomDataFromNbt, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tick, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, writeCustomDataToNbt, writeNbt

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.server.command.CommandOutput

    cannotBeSilenced

    Methods inherited from interface dev.onyxstudios.cca.api.v3.component.ComponentAccess

    asComponentProvider, getComponent, syncComponent, syncComponent, syncComponent

    Methods inherited from interface com.github.thedeathlycow.thermoo.api.temperature.Soakable

    thermoo$addWetTicks, thermoo$getSoakedScale, thermoo$isSoaked, thermoo$isWet

    Methods inherited from interface com.github.thedeathlycow.thermoo.api.temperature.TemperatureAware

    thermoo$addTemperature, thermoo$getTemperatureScale, thermoo$isCold, thermoo$isWarm
  • Constructor Details

    • EnvironmentAwareEntityMixin

      public EnvironmentAwareEntityMixin(net.minecraft.entity.EntityType<?> type, net.minecraft.world.World world)
  • Method Details

    • getAttributeValue

      public abstract double getAttributeValue(net.minecraft.entity.attribute.EntityAttribute attribute)
    • getAttributeInstance

      public abstract net.minecraft.entity.attribute.EntityAttributeInstance getAttributeInstance(net.minecraft.entity.attribute.EntityAttribute attribute)
    • canBreatheInWater

      public abstract boolean canBreatheInWater()
    • hasStatusEffect

      public abstract boolean hasStatusEffect(net.minecraft.entity.effect.StatusEffect effect)
    • thermoo$setWetTicks

      public void thermoo$setWetTicks(int amount)
      Description copied from interface: Soakable
      Sets the wet ticks of a soakable to an exact amount.

      Clamps the amount between 0 and max wet ticks before setting.

      Specified by:
      thermoo$setWetTicks in interface Soakable
      Parameters:
      amount - The amount of wet ticks
    • thermoo$getWetTicks

      public int thermoo$getWetTicks()
      Specified by:
      thermoo$getWetTicks in interface Soakable
      Returns:
      Returns the wet ticks of the soakable
    • thermoo$getMaxWetTicks

      public int thermoo$getMaxWetTicks()
      Specified by:
      thermoo$getMaxWetTicks in interface Soakable
      Returns:
      Returns the maximum wet ticks the soakable can have
    • thermoo$ignoresFrigidWater

      public boolean thermoo$ignoresFrigidWater()
      Description copied from interface: Soakable
      Soakables ignore frigid water if they can breathe in water.
      Specified by:
      thermoo$ignoresFrigidWater in interface Soakable
      Returns:
      Returns if the soakable ignores the effects of frigid water
    • thermoo$getTemperature

      public int thermoo$getTemperature()
      Specified by:
      thermoo$getTemperature in interface TemperatureAware
      Returns:
      Returns the current temperature of the temperature aware object
    • thermoo$setTemperature

      public void thermoo$setTemperature(int temperature)
      Specified by:
      thermoo$setTemperature in interface TemperatureAware
      Parameters:
      temperature - Sets the current temperature of the temperature aware object to an exact value
    • thermoo$getMinTemperature

      public int thermoo$getMinTemperature()
      Specified by:
      thermoo$getMinTemperature in interface TemperatureAware
      Returns:
      Returns the minimum allowed temperature of the temperature aware object.
    • thermoo$getMaxTemperature

      public int thermoo$getMaxTemperature()
      Specified by:
      thermoo$getMaxTemperature in interface TemperatureAware
      Returns:
      Returns the maximum allowed temperature of the temperature aware object
    • thermoo$getColdResistance

      public double thermoo$getColdResistance()
      Description copied from interface: TemperatureAware
      Supplies the cold resistance of the temperature aware object. Cold Resistance is a percentage on a scale from 0 to 10, where 0 cold resistance corresponds to 0%, and 10 cold resistance corresponds to 100%.
      Specified by:
      thermoo$getColdResistance in interface TemperatureAware
      Returns:
      Returns the cold resistance of the temperature aware object
    • thermoo$getHeatResistance

      public double thermoo$getHeatResistance()
      Description copied from interface: TemperatureAware
      Supplies the heat resistance of the temperature aware object. Heat Resistance is a percentage on a scale from 0 to 10, where 0 heat resistance corresponds to 0%, and 10 heat resistance corresponds to 100%.
      Specified by:
      thermoo$getHeatResistance in interface TemperatureAware
      Returns:
      Returns the heat resistance of the temperature aware object
    • thermoo$canFreeze

      public boolean thermoo$canFreeze()
      Specified by:
      thermoo$canFreeze in interface TemperatureAware
      Returns:
      Returns if the thermally aware object can be affected by cold
    • thermoo$canOverheat

      public boolean thermoo$canOverheat()
      Specified by:
      thermoo$canOverheat in interface TemperatureAware
      Returns:
      Returns if the thermally aware object can be affected by heat
    • thermoo$addTemperature

      public void thermoo$addTemperature(int temperatureChange, HeatingMode mode)
      Description copied from interface: TemperatureAware
      Adds or removes some amount of temperature to the thermally aware object. Resistance can be applied by specifying a HeatingMode. See HeatingModes for some common modes.
      Specified by:
      thermoo$addTemperature in interface TemperatureAware
      Parameters:
      temperatureChange - The amount of temperature to add/remove. Positive change adds, negative change removes.
      mode - The mode of resistance to apply to the change.