Class TntMinecartEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/TntMinecartEntityintermediary net/minecraft/class_1701official cvj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
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, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, 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(double power) 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 voidReads custom data fromnbt.(package private) booleanshouldAlwaysKill(DamageSource source) private static booleanshouldDetonate(DamageSource source) voidtick()Ticks this entity.protected voidWrites custom data tonbt.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, 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, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, 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, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, 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, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, 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, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, 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, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, writeNbtMethods 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.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 bLcvj;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 cLcvj;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 dLcvj;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 hLcvj;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 iLcvj;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 jLcvj;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 kLcvj;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 lLcvj;l:Lbvt;
-
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 mLcvj;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 nLcvj;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 oLcvj;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>Lbxe;<init>(Lbxn;Ldkj;)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 vLcuv;v()Lebq;
-
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 gLbxe;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 aLbxe;a(Lasb;Lbvt;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 aLcvn;a(Lasb;Lbvt;)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 pLcvn;p()Ldag;
-
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 dILbxe;dI()Ldak;
-
explode
protected void explode(double power) - Mappings:
Namespace Name Mixin selector named explodeLnet/minecraft/entity/vehicle/TntMinecartEntity;explode(D)Vintermediary method_47305Lnet/minecraft/class_1701;method_47305(D)Vofficial hLcvj;h(D)V
-
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 aLcvj;a(Lbvt;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 aLbxe;a(DFLbvt;)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 aLcuv;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 bLbxe;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 aLcvj;a(Lbvt;)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 eLcvj;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 rLcvj;r()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 aLbxe;a(Ldkc;Ldjn;Liw;Lebq;Leya;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 aLbxe;a(Ldkc;Ldjn;Liw;Lebq;F)Z
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classAbstractMinecartEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbxe;a(Lua;)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbtin classAbstractMinecartEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbxe;b(Lua;)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 eLcvn;e(Lbvt;)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 fLcvj;f(Lbvt;)Z
-