net.minecraft.network.datasync.DataParameter Java Examples

The following examples show how to use net.minecraft.network.datasync.DataParameter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EntityEndermanFighter.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public void notifyDataManagerChange(DataParameter<?> key)
{
    if (SCREAMING.equals(key) && this.isScreaming() && this.world.isRemote)
    {
        this.playEndermanSound();
    }

    super.notifyDataManagerChange(key);
}
 
Example #2
Source File: EntityChair.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public void notifyDataManagerChange(DataParameter<?> key)
{
    if (WIDTH.equals(key) || HEIGHT.equals(key))
    {
        this.setSize(this.getWidth(), this.getHeight());
    }

    super.notifyDataManagerChange(key);
}
 
Example #3
Source File: EntityFallingBlockEU.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public void notifyDataManagerChange(DataParameter<?> key)
{
    if (BLOCK_STATE.equals(key))
    {
        this.blockState = this.getBlockState();
    }

    super.notifyDataManagerChange(key);
}
 
Example #4
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<Gender> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #5
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<BigCatType> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #6
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<BoarStage> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #7
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<ElephantType> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #8
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<BearType> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #9
Source File: DataSerializersTFC.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<TigerType> createKey(int id) {
	return new DataParameter(id, this);
}
 
Example #10
Source File: HDataSerializers.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
public DataParameter<Area> createKey(int id) {
	return new DataParameter<>(id, this);
}
 
Example #11
Source File: HandEntity.java    From pycode-minecraft with MIT License 4 votes vote down vote up
public void notifyDataManagerChange(DataParameter<?> key) {
    super.notifyDataManagerChange(key);
    if (CODE.equals(key)) {
        this.code.setCodeString(this.dataManager.get(CODE));
    }
}
 
Example #12
Source File: EntityMountable.java    From Valkyrien-Skies with Apache License 2.0 4 votes vote down vote up
@Override
public void notifyDataManagerChange(DataParameter<?> key) {
    if (key == SHARED_NBT) {
        readEntityFromNBT(dataManager.get(SHARED_NBT));
    }
}
 
Example #13
Source File: EntityToro.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public void notifyDataManagerChange(DataParameter<?> key) {
	if (CHARGING.equals(key) && this.isCharging() && world.isRemote) {
	}
	super.notifyDataManagerChange(key);
}
 
Example #14
Source File: EntityBackupZombie.java    From Wizardry with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void notifyDataManagerChange(@Nonnull DataParameter<?> key) {
	super.notifyDataManagerChange(key);
}
 
Example #15
Source File: NBTUtil.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public DataParameter<Vec3d> createKey(int id) {
    return new DataParameter<>(id, this);
}
 
Example #16
Source File: EntityAnimalWithTypes.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public DataParameter<Integer> getDataKey() {
    return TYPE_NUMBER;
}
 
Example #17
Source File: IVariantTypes.java    From CommunityMod with GNU Lesser General Public License v2.1 votes vote down vote up
DataParameter<Integer> getDataKey();