net.minecraft.entity.decoration

public class CushionEntity

extends BlockAttachedEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.decoration.Cushion
net.minecraft.world.entity.decoration.Cushion
net.minecraft.class_1_1225
net.minecraft.entity.decoration.CushionEntity

Field summary

Modifier and TypeField
private static final DyeColor
DEFAULT_COLOR
DEFAULT_COLOR
field_1_8512
DEFAULT_COLOR
private static final int
LIGHTNING_DROP_INVULNERABLE_TICKS
LIGHTNING_DROP_INVULNERABLE_TICKS
field_1_9057
TIME_UNTIL_REGEN_ON_LIGHTNING_STRIKE
private static final TrackedData<DyeColor>
DATA_COLOR
DATA_COLOR
field_1_8511
COLOR

Constructor summary

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

Method summary

Modifier and TypeMethod
public DyeColor
getColor()
getColor()
method_1_7782()
getColor()
public void
setColor(DyeColor color)
setColor(DyeColor color)
method_1_7783(class_1767 arg0)
setColor(DyeColor color)
public void
dropItem(ServerLevel level, Entity causedBy)
dropItem(ServerLevel level, Entity causedBy)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
private static boolean
isBreakingDeniedFor(DamageSource source)
isBreakingDeniedFor(DamageSource source)
method_1_9610(class_1282 arg0)
isImmuneTo(DamageSource source)
private boolean
isBreakingDeniedAtPosFor(ServerLevel level, DamageSource source)
isBreakingDeniedAtPosFor(ServerLevel level, DamageSource source)
method_1_9609(class_3218 arg0, class_1282 arg1)
isImmuneInWorld(ServerWorld world, DamageSource source)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
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 boolean
hurtClient(DamageSource source)
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
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)
protected void
removePassenger(Entity passenger)
removePassenger(Entity passenger)
method_5793(class_1297 arg0)
removePassenger(Entity arg0)
public ItemStack
getPickResult()
getPickResult()
method_31480()
getPickBlockStack()
protected void
tickAtCheckInterval()
tickAtCheckInterval()
method_1_8162()
handleFluidCollisions()
public void
destroyIfInFire(ServerLevel level)
destroyIfInFire(ServerLevel level)
method_1_8660(class_3218 arg0)
handleFireCollisions(ServerWorld world)
public void
thunderHit(ServerLevel level, LightningBolt lightningBolt)
thunderHit(ServerLevel level, LightningBolt lightningBolt)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
public void
setPos(double x, double y, double z)
setPos(double x, double y, double z)
method_5814(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
private void
showBreakingParticles()
showBreakingParticles()
method_1_7784()
spawnBreakParticles()
public static boolean
canBePlacedAt(Level level, AABB boundingBox)
canBePlacedAt(Level level, AABB boundingBox)
method_1_9440(class_1937 arg0, class_238 arg1)
canBePlaced(World world, Box box)
public static boolean
wouldSurviveAt(Level level, AABB boundingBox)
wouldSurviveAt(Level level, AABB boundingBox)
method_1_9443(class_1937 arg0, class_238 arg1)
canStayAttached(World world, Box box)
private static boolean
hasAnchorBelow(Level level, AABB boundingBox)
hasAnchorBelow(Level level, AABB boundingBox)
method_1_7785(class_1937 arg0, class_238 arg1)
isSupported(World world, Box cushionBox)
private static boolean
isAnchorBuried(Level level, AABB boundingBox)
isAnchorBuried(Level level, AABB boundingBox)
method_1_9441(class_1937 arg0, class_238 arg1)
isBottomCompletelyObstructed(World world, Box box)
private static boolean
isCoveredBySuffocatingBlocks(Level level, AABB boundingBox)
isCoveredBySuffocatingBlocks(Level level, AABB boundingBox)
method_1_9442(class_1937 arg0, class_238 arg1)
isCompletelyObstructedByFullBlocks(World world, Box box)
public boolean
survives()
survives()
method_6888()
canStayAttached()
protected void
recalculateBoundingBox()
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public <T> T
get(DataComponentType<? extends T> type)
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
private ItemStack
getCushionItemStackWithData()
getCushionItemStackWithData()
method_1_8661()
getItemStack()