net.minecraft.entity.projectile

public class TridentEntity

extends PersistentProjectileEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Ownable

net.minecraft.world.entity.projectile.arrow.ThrownTrident
net.minecraft.class_1685
net.minecraft.entity.projectile.TridentEntity

Field summary

Modifier and TypeField
private static final TrackedData<Byte>
ID_LOYALTY
field_7647
LOYALTY
private static final TrackedData<Boolean>
ID_FOIL
field_21514
ENCHANTED
private static final float
WATER_INERTIA
field_55019
DRAG_IN_WATER
private static final boolean
DEFAULT_DEALT_DAMAGE
field_57745
DEFAULT_DEALT_DAMAGE
private boolean
dealtDamage
field_7648
dealtDamage
public int
clientSideReturnTridentTickCount
field_7649
returnTimer

Constructor summary

ModifierConstructor
public (EntityType<? extends TridentEntity> type, World level)
public (World world, LivingEntity owner, ItemStack stack)
public (World world, double x, double y, double z, ItemStack stack)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
tick()
method_5773()
tick()
private boolean
isAcceptibleReturnOwner()
method_7493()
isOwnerAlive()
public boolean
isFoil()
method_23751()
isEnchanted()
protected EntityHitResult
findHitEntity(Vec3 from, Vec3 to)
method_7434(class_243 arg0, class_243 arg1)
getEntityCollision(Vec3d arg0, Vec3d arg1)
protected Collection<EntityHitResult>
findHitEntities(Vec3 from, Vec3 to)
method_75208(class_243 arg0, class_243 arg1)
collectPiercingCollisions(Vec3d arg0, Vec3d arg1)
protected void
onHitEntity(EntityHitResult hitResult)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack weapon)
method_59956(class_3218 arg0, class_3965 arg1, class_1799 arg2)
onBlockHitEnchantmentEffects(ServerWorld arg0, BlockHitResult arg1, ItemStack arg2)
public ItemStack
getWeaponItem()
method_59958()
getWeaponStack()
protected boolean
tryPickup(Player player)
method_34713(class_1657 arg0)
tryPickup(PlayerEntity arg0)
protected ItemStack
getDefaultPickupItem()
method_57314()
getDefaultItemStack()
protected SoundEvent
getDefaultHitGroundSoundEvent()
method_7440()
getHitSound()
public void
playerTouch(Player player)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity 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)
private byte
getLoyaltyFromItem(ItemStack tridentItem)
method_59960(class_1799 arg0)
getLoyalty(ItemStack stack)
public void
tickDespawn()
method_7446()
age()
protected float
getWaterInertia()
method_7436()
getDragInWater()
public boolean
shouldRender(double camX, double camY, double camZ)
method_5727(double arg0, double arg1, double arg2)
shouldRender(double arg0, double arg1, double arg2)
private void
lambda$hitBlockEnchantmentEffects$0(ServerLevel arg0, Item arg1)
method_60616(class_3218 arg0, class_1792 arg1)
method_60616(ServerWorld arg0, Item arg1)
private void
lambda$onHitEntity$0(ServerLevel arg0, Item arg1)
method_63013(class_3218 arg0, class_1792 arg1)
method_63013(ServerWorld arg0, Item item)