net.minecraft.entity.decoration

public class LeashKnotEntity

extends BlockAttachedEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.decoration.LeashFenceKnotEntity
net.minecraft.class_1532
net.minecraft.entity.decoration.LeashKnotEntity

Field summary

Modifier and TypeField
public static final double
OFFSET_Y
field_30455
Y_OFFSET

Constructor summary

ModifierConstructor
public (EntityType<? extends LeashKnotEntity> type, World level)
public (World world, BlockPos pos)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public void
dropItem(ServerLevel level, Entity causedBy)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
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
notifyLeasheeRemoved(Leashable entity)
method_70982(class_9817 arg0)
onHeldLeashUpdate(Leashable arg0)
public boolean
survives()
method_6888()
canStayAttached()
public static LeashKnotEntity
getOrCreateKnot(Level level, BlockPos pos)
method_6932(class_1937 arg0, class_2338 arg1)
getOrCreate(World world, BlockPos pos)
public static Optional<LeashKnotEntity>
getKnot(Level level, BlockPos pos)
method_1_2650(class_1937 arg0, class_2338 arg1)
get(World world, BlockPos pos)
public static LeashKnotEntity
createKnot(Level level, BlockPos pos)
method_1_2649(class_1937 arg0, class_2338 arg1)
create(World world, BlockPos pos)
public void
playPlacementSound()
method_59944()
onPlace()
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public Vec3d
getRopeHoldPosition(float partialTickTime)
method_30951(float arg0)
getLeashPos(float arg0)
public ItemStack
getPickResult()
method_31480()
getPickBlockStack()
private static LeashKnotEntity
lambda$getOrCreateKnot$0(Level arg0, BlockPos arg1)
method_1_2651(class_1937 arg0, class_2338 arg1)
method_1_2651(World arg0, BlockPos arg1)