File tree Expand file tree Collapse file tree
src/main/java/org/spongepowered/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -701,6 +701,11 @@ public final class Keys {
701701 */
702702 public static final Key <Value <Boolean >> CAN_MOVE_ON_LAND = Keys .key (ResourceKey .sponge ("can_move_on_land" ), Boolean .class );
703703
704+ /**
705+ * Whether a {@link Living} can pick up loot.
706+ */
707+ public static final Key <Value <Boolean >> CAN_PICK_UP_LOOT = Keys .key (ResourceKey .sponge ("can_pick_up_loot" ), Boolean .class );
708+
704709 /**
705710 * Whether a {@link FallingBlock} will place itself upon landing.
706711 */
Original file line number Diff line number Diff line change @@ -52,4 +52,24 @@ default Optional<Attribute> attribute(final Supplier<? extends AttributeType> ty
5252 * @return An attribute, if present.
5353 */
5454 Optional <Attribute > attribute (final AttributeType type );
55+
56+ /**
57+ * Gets an immutable copy of the default {@link Attribute}
58+ * from this entity.
59+ *
60+ * @param type The attribute type.
61+ * @return An attribute, if present.
62+ */
63+ default Optional <Attribute > defaultAttribute (final Supplier <? extends AttributeType > type ) {
64+ return this .defaultAttribute (type .get ());
65+ }
66+
67+ /**
68+ * Gets an immutable copy of the default {@link Attribute}
69+ * from this entity.
70+ *
71+ * @param type The attribute type.
72+ * @return An attribute, if present.
73+ */
74+ Optional <Attribute > defaultAttribute (final AttributeType type );
5575}
You can’t perform that action at this time.
0 commit comments