Class TntMinecartEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/TntMinecartEntityintermediary net/minecraft/class_1701official dco
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable DamageSourceprivate static final floatprivate static final floatprivate static final intprivate static final Stringprivate static final Stringprivate floatprivate floatprivate static final Stringprivate intprivate static final byteFields inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
VELOCITY_SLOWDOWN_MULTIPLIERFields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKSFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionTntMinecartEntity(EntityType<? extends TntMinecartEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemasItem()booleancanExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosionfrom this entity can destroystate.booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected voidexplode(@Nullable DamageSource damageSource, double power) floatgetEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockStatefor an explosion caused by this entity.intReturns the stack for creative "pick block" functionality, ornullif there is none.booleanhandleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.booleanisPrimed()voidkillAndDropSelf(ServerWorld world, DamageSource damageSource) voidonActivatorRail(int x, int y, int z, boolean powered) voidprime(@Nullable DamageSource source) protected voidreadCustomData(ReadView view) (package private) booleanshouldAlwaysKill(DamageSource source) private static booleanshouldDetonate(DamageSource source) voidtick()Ticks this entity.protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, applyGravity, applySlowdown, areMinecartImprovementsEnabled, canHit, collidesWith, create, getAdjacentRailPositionsByShape, getBlockOffset, getContainedBlock, getController, getDefaultBlockOffset, getGravity, getInterpolator, getLaunchDirection, getMaxSpeed, getMoveEffect, getMovement, getMovementDirection, getPassengerAttachmentPos, getRailOrMinecartPos, getVelocityMultiplier, initDataTracker, initPosition, isFirstUpdate, isOnRail, isPushable, isRideable, isSelfPropelling, isYawFlipped, lerpPosAndRotation, move, moveAlongTrack, moveOffRail, moveOnRail, onSpawnPacket, positionInPortal, pushAwayFrom, refreshPosition, setBlockOffset, setCustomBlockState, setOnRail, setVelocityClient, setYawFlipped, tickBlockCollision, updatePassengerForDismount, updateWaterState, willHitBlockAtMethods inherited from class net.minecraft.entity.vehicle.VehicleEntity
clientDamage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultPortalCooldown, isImmuneToExplosion, killAndDropItem, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicksMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, collides, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWeaponStack, getWidth, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartlyTouchingWater, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpYaw, limitFallDistance, lookAt, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
PRIME_TNT_STATUS
private static final byte PRIME_TNT_STATUS- See Also:
- Mappings:
Namespace Name Mixin selector named PRIME_TNT_STATUSLnet/minecraft/entity/vehicle/TntMinecartEntity;PRIME_TNT_STATUS:Bintermediary field_30703Lnet/minecraft/class_1701;field_30703:Bofficial bLdco;b:B
-
EXPLOSION_POWER_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named EXPLOSION_POWER_NBT_KEYLnet/minecraft/entity/vehicle/TntMinecartEntity;EXPLOSION_POWER_NBT_KEY:Ljava/lang/String;intermediary field_52524Lnet/minecraft/class_1701;field_52524:Ljava/lang/String;official cLdco;c:Ljava/lang/String;
-
EXPLOSION_SPEED_FACTOR_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named EXPLOSION_SPEED_FACTOR_NBT_KEYLnet/minecraft/entity/vehicle/TntMinecartEntity;EXPLOSION_SPEED_FACTOR_NBT_KEY:Ljava/lang/String;intermediary field_55020Lnet/minecraft/class_1701;field_55020:Ljava/lang/String;official dLdco;d:Ljava/lang/String;
-
FUSE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FUSE_NBT_KEYLnet/minecraft/entity/vehicle/TntMinecartEntity;FUSE_NBT_KEY:Ljava/lang/String;intermediary field_55021Lnet/minecraft/class_1701;field_55021:Ljava/lang/String;official hLdco;h:Ljava/lang/String;
-
DEFAULT_EXPLOSION_POWER
private static final float DEFAULT_EXPLOSION_POWER- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_EXPLOSION_POWERLnet/minecraft/entity/vehicle/TntMinecartEntity;DEFAULT_EXPLOSION_POWER:Fintermediary field_52525Lnet/minecraft/class_1701;field_52525:Fofficial iLdco;i:F
-
DEFAULT_EXPLOSION_SPEED_FACTOR
private static final float DEFAULT_EXPLOSION_SPEED_FACTOR- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_EXPLOSION_SPEED_FACTORLnet/minecraft/entity/vehicle/TntMinecartEntity;DEFAULT_EXPLOSION_SPEED_FACTOR:Fintermediary field_55022Lnet/minecraft/class_1701;field_55022:Fofficial jLdco;j:F
-
DEFAULT_FUSE_TICKS
private static final int DEFAULT_FUSE_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FUSE_TICKSLnet/minecraft/entity/vehicle/TntMinecartEntity;DEFAULT_FUSE_TICKS:Iintermediary field_57753Lnet/minecraft/class_1701;field_57753:Iofficial kLdco;k:I
-
damageSource
- Mappings:
Namespace Name Mixin selector named damageSourceLnet/minecraft/entity/vehicle/TntMinecartEntity;damageSource:Lnet/minecraft/entity/damage/DamageSource;intermediary field_55977Lnet/minecraft/class_1701;field_55977:Lnet/minecraft/class_1282;official lLdco;l:Lcci;
-
fuseTicks
private int fuseTicks- Mappings:
Namespace Name Mixin selector named fuseTicksLnet/minecraft/entity/vehicle/TntMinecartEntity;fuseTicks:Iintermediary field_7751Lnet/minecraft/class_1701;field_7751:Iofficial mLdco;m:I
-
explosionPower
private float explosionPower- Mappings:
Namespace Name Mixin selector named explosionPowerLnet/minecraft/entity/vehicle/TntMinecartEntity;explosionPower:Fintermediary field_52526Lnet/minecraft/class_1701;field_52526:Fofficial nLdco;n:F
-
explosionSpeedFactor
private float explosionSpeedFactor- Mappings:
Namespace Name Mixin selector named explosionSpeedFactorLnet/minecraft/entity/vehicle/TntMinecartEntity;explosionSpeedFactor:Fintermediary field_55023Lnet/minecraft/class_1701;field_55023:Fofficial oLdco;o:F
-
-
Constructor Details
-
TntMinecartEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcdv;<init>(Lcee;Ldrq;)V
-
-
Method Details
-
getDefaultContainedBlock
- Overrides:
getDefaultContainedBlockin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector named getDefaultContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;intermediary method_7517Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;official vLdca;v()Lejm;
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classAbstractMinecartEntity- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick(). - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcdv;g()V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classVehicleEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64397Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Zofficial aLcdv;a(Lawx;Lcci;F)Z
-
killAndDropSelf
- Overrides:
killAndDropSelfin classVehicleEntity- Mappings:
Namespace Name Mixin selector named killAndDropSelfLnet/minecraft/entity/vehicle/VehicleEntity;killAndDropSelf(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_7516Lnet/minecraft/class_8836;method_7516(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Vofficial aLdcs;a(Lawx;Lcci;)V
-
asItem
- Specified by:
asItemin classVehicleEntity- Mappings:
Namespace Name Mixin selector named asItemLnet/minecraft/entity/vehicle/VehicleEntity;asItem()Lnet/minecraft/item/Item;intermediary method_7557Lnet/minecraft/class_8836;method_7557()Lnet/minecraft/class_1792;official pLdcs;p()Ldhl;
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornullif there is none.If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that
MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Specified by:
getPickBlockStackin classAbstractMinecartEntity- Returns:
- the stack for creative "pick block" functionality, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dULcdv;dU()Ldhp;
-
explode
- Mappings:
Namespace Name Mixin selector named explodeLnet/minecraft/entity/vehicle/TntMinecartEntity;explode(Lnet/minecraft/entity/damage/DamageSource;D)Vintermediary method_7576Lnet/minecraft/class_1701;method_7576(Lnet/minecraft/class_1282;D)Vofficial aLdco;a(Lcci;D)V
-
handleFallDamage
public boolean handleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity.- Overrides:
handleFallDamagein classEntity- Returns:
- whether to play the sound when falling on honey block;
falsefor all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamageLnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5747Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Zofficial aLcdv;a(DFLcci;)Z
-
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered) - Overrides:
onActivatorRailin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector named onActivatorRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)Vintermediary method_7506Lnet/minecraft/class_1688;method_7506(IIIZ)Vofficial aLdca;a(IIIZ)V
-
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatusin classEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcdv;b(B)V
-
prime
- Mappings:
Namespace Name Mixin selector named primeLnet/minecraft/entity/vehicle/TntMinecartEntity;prime(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_7575Lnet/minecraft/class_1701;method_7575(Lnet/minecraft/class_1282;)Vofficial aLdco;a(Lcci;)V
-
getFuseTicks
public int getFuseTicks()- Mappings:
Namespace Name Mixin selector named getFuseTicksLnet/minecraft/entity/vehicle/TntMinecartEntity;getFuseTicks()Iintermediary method_7577Lnet/minecraft/class_1701;method_7577()Iofficial eLdco;e()I
-
isPrimed
public boolean isPrimed()- Mappings:
Namespace Name Mixin selector named isPrimedLnet/minecraft/entity/vehicle/TntMinecartEntity;isPrimed()Zintermediary method_7578Lnet/minecraft/class_1701;method_7578()Zofficial qLdco;q()Z
-
getEffectiveExplosionResistance
public float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockStatefor an explosion caused by this entity.- Overrides:
getEffectiveExplosionResistancein classEntity- Returns:
- the blast resistance of
blockStatefor an explosion caused by this entity - See Also:
- API Note:
WitherSkullEntityoverrides this to implement the "charged/blue skull" behavior.- Mappings:
Namespace Name Mixin selector named getEffectiveExplosionResistanceLnet/minecraft/entity/Entity;getEffectiveExplosionResistance(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;F)Fintermediary method_5774Lnet/minecraft/class_1297;method_5774(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;F)Fofficial aLcdv;a(Ldrj;Ldqu;Lja;Lejm;Lfga;F)F
-
canExplosionDestroyBlock
public boolean canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosionfrom this entity can destroystate.- Overrides:
canExplosionDestroyBlockin classEntity- Returns:
- whether
explosionfrom this entity can destroystate - See Also:
- API Note:
- This is used by
TntMinecartEntityto prevent the rail from being destroyed by explosion. - Mappings:
Namespace Name Mixin selector named canExplosionDestroyBlockLnet/minecraft/entity/Entity;canExplosionDestroyBlock(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)Zintermediary method_5853Lnet/minecraft/class_1297;method_5853(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Zofficial aLcdv;a(Ldrj;Ldqu;Lja;Lejm;F)Z
-
readCustomData
- Overrides:
readCustomDatain classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcdv;a(Lfip;)V
-
writeCustomData
- Overrides:
writeCustomDatain classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcdv;a(Lfir;)V
-
shouldAlwaysKill
- Overrides:
shouldAlwaysKillin classVehicleEntity- Mappings:
Namespace Name Mixin selector named shouldAlwaysKillLnet/minecraft/entity/vehicle/VehicleEntity;shouldAlwaysKill(Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_55056Lnet/minecraft/class_8836;method_55056(Lnet/minecraft/class_1282;)Zofficial eLdcs;e(Lcci;)Z
-
shouldDetonate
- Mappings:
Namespace Name Mixin selector named shouldDetonateLnet/minecraft/entity/vehicle/TntMinecartEntity;shouldDetonate(Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_55057Lnet/minecraft/class_1701;method_55057(Lnet/minecraft/class_1282;)Zofficial fLdco;f(Lcci;)Z
-