net.minecraft.entity.decoration

public class InteractionEntity

extends Entity implements Attackable, Targeter

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, Targeter

net.minecraft.world.entity.Interaction
net.minecraft.class_8150
net.minecraft.entity.decoration.InteractionEntity

Field summary

Modifier and TypeField
private static final TrackedData<Float>
DATA_WIDTH_ID
field_42625
WIDTH
private static final TrackedData<Float>
DATA_HEIGHT_ID
field_42626
HEIGHT
private static final TrackedData<Boolean>
DATA_RESPONSE_ID
field_42627
RESPONSE
private static final String
TAG_WIDTH
field_42628
WIDTH_KEY
private static final String
TAG_HEIGHT
field_42629
HEIGHT_KEY
private static final String
TAG_ATTACK
field_42630
ATTACK_KEY
private static final String
TAG_INTERACTION
field_42631
INTERACTION_KEY
private static final String
TAG_RESPONSE
field_42632
RESPONSE_KEY
private static final float
DEFAULT_WIDTH
field_57588
DEFAULT_WIDTH
private static final float
DEFAULT_HEIGHT
field_57589
DEFAULT_HEIGHT
private static final boolean
DEFAULT_RESPONSE
field_57590
DEFAULT_RESPONSE
private InteractionEntity$Interaction
attack
field_42633
attack
private InteractionEntity$Interaction
interaction
field_42634
interaction

Constructor summary

ModifierConstructor
public (EntityType<?> type, World level)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public boolean
canBeHitByProjectile()
method_49108()
canBeHitByProjectile()
public boolean
isPickable()
method_5863()
canHit()
public PistonBehavior
getPistonPushReaction()
method_5657()
getPistonBehavior()
public boolean
isIgnoringBlockTriggers()
method_5696()
canAvoidTraps()
public boolean
skipAttackInteraction(Entity source)
method_5698(class_1297 arg0)
handleAttack(Entity arg0)
public final boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
public void
tick()
method_5773()
tick()
public LivingEntity
getLastAttacker()
method_49107()
getLastAttacker()
public LivingEntity
getTarget()
method_5968()
getTarget()
private void
setWidth(float width)
method_49109(float arg0)
setInteractionWidth(float width)
private float
getWidth()
method_49116()
getInteractionWidth()
private void
setHeight(float width)
method_49113(float arg0)
setInteractionHeight(float height)
private float
getHeight()
method_49117()
getInteractionHeight()
private void
setResponse(boolean response)
method_49112(boolean arg0)
setResponse(boolean response)
private boolean
getResponse()
method_49118()
shouldRespond()
private EntityDimensions
getDimensions()
method_49119()
getDimensions()
public EntityDimensions
getDimensions(Pose pose)
method_18377(class_4050 arg0)
getDimensions(EntityPose arg0)
protected Box
makeBoundingBox(Vec3 position)
method_65341(class_243 arg0)
calculateDefaultBoundingBox(Vec3d arg0)