记录类 IsViewEntity
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.conditional.IsViewEntity
- 所有已实现的接口:
ConditionalItemModelProperty
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final boolean
指示某个其他对象是否“等于”此对象。boolean
get
(ItemStack p_378008_, ClientLevel p_378463_, LivingEntity p_376951_, int p_376819_, ItemDisplayContext p_377915_) final int
hashCode()
返回此对象的哈希代码值。final String
toString()
返回此记录类的字符串表示形式。com.mojang.serialization.MapCodec
<IsViewEntity> type()
-
字段详细资料
-
MAP_CODEC
-
-
构造器详细资料
-
IsViewEntity
public IsViewEntity()创建IsViewEntity
记录类的实例。
-
-
方法详细资料
-
get
public boolean get(ItemStack p_378008_, @Nullable ClientLevel p_378463_, @Nullable LivingEntity p_376951_, int p_376819_, ItemDisplayContext p_377915_) - 指定者:
get
在接口中ConditionalItemModelProperty
-
type
- 指定者:
type
在接口中ConditionalItemModelProperty
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。
-